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:
Theo Arends 2022-09-02 17:12:42 +02:00
parent a43eaef01b
commit 2cca11f54b
1 changed files with 3 additions and 1 deletions

View File

@ -168,7 +168,9 @@ def esp32_create_combined_bin(source, target, env):
else:
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")
if exists(fs_bin):
before_reset = env.BoardConfig().get("upload.before_reset", "default_reset")