From 000e9f593127edabdd05b5f2c5c384dad55331d8 Mon Sep 17 00:00:00 2001 From: Maximilian Gerhardt Date: Mon, 23 Jan 2023 11:31:34 +0100 Subject: [PATCH] Recongize Seeed variant for nrf52 core Per https://github.com/maxgerhardt/builder-framework-arduino-nrf5/commit/cc60b35642984f2244491086664463784f90da06 --- adafruit.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/adafruit.py b/adafruit.py index 623408b..d3e5d15 100644 --- a/adafruit.py +++ b/adafruit.py @@ -31,7 +31,9 @@ board = env.BoardConfig() variant = board.get("build.variant") -FRAMEWORK_DIR = platform.get_package_dir("framework-arduinoadafruitnrf52") +is_xiao_board = board.id in ("xiaoblesense_adafruit", "xiaoble_adafruit") +framework_pkg = "framework-arduinoadafruitnrf52-seeed" if is_xiao_board else "framework-arduinoadafruitnrf52" +FRAMEWORK_DIR = platform.get_package_dir(framework_pkg) assert isdir(FRAMEWORK_DIR) CMSIS_DIR = platform.get_package_dir("framework-cmsis")