From 2cca11f54bc649c3e115665aa5b6c92fe461ccbc Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Fri, 2 Sep 2022 17:12:42 +0200 Subject: [PATCH] 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. --- pio-tools/post_esp32.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pio-tools/post_esp32.py b/pio-tools/post_esp32.py index ab3440ea7..d4a425ac2 100644 --- a/pio-tools/post_esp32.py +++ b/pio-tools/post_esp32.py @@ -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")