File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -176,9 +176,11 @@ def add_tinyuf2_extra_image():
176
176
libs = []
177
177
178
178
variants_dir = join (FRAMEWORK_DIR , "variants" )
179
+ build_name = join (board_config .get ("name" ))
179
180
180
181
if "build.variants_dir" in board_config :
181
- variants_dir = join ("$PROJECT_DIR" , board_config .get ("build.variants_dir" ))
182
+ if "Tasmota" not in build_name :
183
+ variants_dir = join ("$PROJECT_DIR" , board_config .get ("build.variants_dir" ))
182
184
183
185
if "build.variant" in board_config :
184
186
env .Append (CPPPATH = [join (variants_dir , board_config .get ("build.variant" ))])
@@ -202,9 +204,8 @@ def add_tinyuf2_extra_image():
202
204
#
203
205
204
206
# 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 :
207
- EXTRA_IMG_DIR = variants_dir
207
+ if "Tasmota" in build_name :
208
+ EXTRA_IMG_DIR = join (variants_dir , "tasmota" )
208
209
else :
209
210
EXTRA_IMG_DIR = FRAMEWORK_DIR
210
211
You can’t perform that action at this time.
0 commit comments