Skip to content

Commit 8a663ce

Browse files
committed
Also remove the update binary in case there are any remains left from previous updates.
1 parent 194c95c commit 8a663ce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ArduinoIoTCloudTCP.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@ void ArduinoIoTCloudTCP::onOTARequest()
492492
}
493493

494494
/* Just to be safe delete any remains from previous updates. */
495+
remove("/fs/UPDATE.BIN");
495496
remove("/fs/UPDATE.BIN.LZSS");
496497

497498
/* Download the OTA file from the web storage location. */

0 commit comments

Comments
 (0)