File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 3131env = DefaultEnvironment ()
3232platform = env .PioPlatform ()
3333board_config = env .BoardConfig ()
34+ build_mcu = board_config .get ("build.mcu" , "" ).lower ()
3435chip_variant = board_config .get ("build.chip_variant" ).lower ()
35- build_mcu = chip_variant if chip_variant else board_config . get ( "build.mcu" , "" ). lower ()
36+ chip_variant = chip_variant if chip_variant else build_mcu
3637partitions_name = board_config .get ("build.partitions" , board_config .get ("build.arduino.partitions" , "" ))
3738
3839FRAMEWORK_DIR = platform .get_package_dir ("framework-arduinoespressif32" )
@@ -81,7 +82,7 @@ def get_bootloader_image(variants_dir):
8182 else generate_bootloader_image (
8283 join (
8384 FRAMEWORK_LIBS_DIR ,
84- build_mcu ,
85+ chip_variant ,
8586 "bin" ,
8687 "bootloader_${__get_board_boot_mode(__env__)}_${__get_board_f_boot(__env__)}.elf" ,
8788 )
@@ -160,7 +161,7 @@ def add_tinyuf2_extra_image():
160161SConscript (
161162 join (
162163 FRAMEWORK_LIBS_DIR ,
163- build_mcu ,
164+ chip_variant ,
164165 "pioarduino-build.py" ,
165166 )
166167)
You can’t perform that action at this time.
0 commit comments