Skip to content

Commit ad7e45e

Browse files
authored
Update platformio-build.py
1 parent 88ae7b7 commit ad7e45e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/platformio-build.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,9 @@ def add_tinyuf2_extra_image():
201201
# Process framework extra images
202202
#
203203

204-
# Tasmota places extra images "safeboot" in project folder
205-
flash_extra_img = ''.join([str(element) for element in board_config.get("upload.arduino.flash_extra_images", [])])
206-
if "safeboot" in flash_extra_img:
204+
# Tasmota places extra images "safeboot" in custom variants folder in project directory
205+
flash_extra_img = board_config.get("build.variants_dir", "")
206+
if flash_extra_img:
207207
EXTRA_IMG_DIR = variants_dir
208208
else:
209209
EXTRA_IMG_DIR = FRAMEWORK_DIR

0 commit comments

Comments
 (0)