mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 12:46:34 +00:00
Merge pull request #15537 from Jason2866/fix_solo1_safemode
fix solo1 firmware build
This commit is contained in:
commit
bbdef78d5d
@ -36,8 +36,13 @@ FRAMEWORK_DIR = platform.get_package_dir("framework-arduinoespressif32")
|
|||||||
variants_dir = join(FRAMEWORK_DIR, "variants", "tasmota")
|
variants_dir = join(FRAMEWORK_DIR, "variants", "tasmota")
|
||||||
|
|
||||||
def esp32_fetch_safemode_bin(chip):
|
def esp32_fetch_safemode_bin(chip):
|
||||||
|
if "solo1" in env.subst("$BUILD_DIR"):
|
||||||
|
safemode_fw_url = "https://github.com/arendst/Tasmota-firmware/raw/main/firmware/tasmota32/tasmota32solo1-safemode.bin"
|
||||||
|
safemode_fw_name = join(variants_dir,"tasmota32solo1-safemode.bin")
|
||||||
|
else:
|
||||||
safemode_fw_url = "https://github.com/arendst/Tasmota-firmware/raw/main/firmware/tasmota32/tasmota" + chip[3:] + "-safemode.bin"
|
safemode_fw_url = "https://github.com/arendst/Tasmota-firmware/raw/main/firmware/tasmota32/tasmota" + chip[3:] + "-safemode.bin"
|
||||||
safemode_fw_name = join(variants_dir,"tasmota" + chip[3:] + "-safemode.bin")
|
safemode_fw_name = join(variants_dir,"tasmota" + chip[3:] + "-safemode.bin")
|
||||||
|
|
||||||
if(exists(safemode_fw_name)):
|
if(exists(safemode_fw_name)):
|
||||||
print("Safemode binary already in place.")
|
print("Safemode binary already in place.")
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user