Skip to content

Commit 5484d19

Browse files
authored
Update platformio-build.py
1 parent 3932b9f commit 5484d19

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/platformio-build.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@ def add_tinyuf2_extra_image():
204204
# Process framework extra images
205205
#
206206

207-
# Tasmota places extra images "safeboot" in project folder
208-
flash_extra_img = ''.join([str(element) for element in board_config.get("upload.arduino.flash_extra_images", [])])
209-
if "safeboot" in flash_extra_img:
207+
# Tasmota places extra images "safeboot" in custom variants folder in project directory
208+
flash_extra_img = board_config.get("build.variants_dir", "")
209+
if flash_extra_img:
210210
EXTRA_IMG_DIR = variants_dir
211211
else:
212212
EXTRA_IMG_DIR = FRAMEWORK_DIR

0 commit comments

Comments
 (0)