Skip to content

Commit

Permalink
Add detection of Xiao boards
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgerhardt authored Jun 22, 2022
1 parent ed9a345 commit abb229f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arduino-core-mbed.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
platform = env.PioPlatform()
board = env.BoardConfig()

FRAMEWORK_DIR = platform.get_package_dir("framework-arduino-mbed")
is_xiao_board = board.id in ("xiaoblesense", "xiaoble")
framework_pkg = "framework-arduino-mbed-seeed" if is_xiao_board else "framework-arduino-mbed"
FRAMEWORK_DIR = platform.get_package_dir(framework_pkg)
assert os.path.isdir(FRAMEWORK_DIR)


Expand Down

0 comments on commit abb229f

Please sign in to comment.