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