From bef9f9d4ed391b88e0c03ca6008103c5a8652703 Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Sun, 21 Jan 2024 17:25:03 +0100 Subject: [PATCH] check for `uploadfs` or `uploadfsota` for FS OTA upload --- builder/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/main.py b/builder/main.py index 483feb9..74ac3e0 100644 --- a/builder/main.py +++ b/builder/main.py @@ -305,7 +305,7 @@ def get_esptoolpy_reset_flags(resetmethod): UPLOADERFLAGS=["--debug", "--progress", "-i", "$UPLOAD_PORT"], UPLOADCMD='"$PYTHONEXE" "$UPLOADER" $UPLOADERFLAGS -f $SOURCE' ) - if "uploadfsota" in COMMAND_LINE_TARGETS: + if set(["uploadfs", "uploadfsota"]) & set(COMMAND_LINE_TARGETS): env.Append(UPLOADERFLAGS=["-s"]) upload_actions = [env.VerboseAction("$UPLOADCMD", "Uploading $SOURCE")]