mirror of https://github.com/arendst/Tasmota.git
Fix OTA upload when filesystem is added
Fix OTA upload when filesystem is added. An OTA upload to OTA server fails without this test as it overrules the user upload script.
This commit is contained in:
parent
a43eaef01b
commit
2cca11f54b
|
@ -168,7 +168,9 @@ def esp32_create_combined_bin(source, target, env):
|
||||||
else:
|
else:
|
||||||
print("Upload new safeboot binary only")
|
print("Upload new safeboot binary only")
|
||||||
|
|
||||||
if(fs_offset != -1):
|
# if(fs_offset != -1):
|
||||||
|
upload_port = env.subst("$UPLOAD_PORT")
|
||||||
|
if("upload-tasmota.php" not in upload_port) and (fs_offset != -1):
|
||||||
fs_bin = join(env.subst("$BUILD_DIR"),"littlefs.bin")
|
fs_bin = join(env.subst("$BUILD_DIR"),"littlefs.bin")
|
||||||
if exists(fs_bin):
|
if exists(fs_bin):
|
||||||
before_reset = env.BoardConfig().get("upload.before_reset", "default_reset")
|
before_reset = env.BoardConfig().get("upload.before_reset", "default_reset")
|
||||||
|
|
Loading…
Reference in New Issue