Skip to content

Commit 1dc0872

Browse files
Remove obsolete refs to ATOMIC_FS_UPDATE (#1597)
See #1590
1 parent ead0728 commit 1dc0872

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

docs/ota.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ Compile the sketch normally and, once a `.bin` file is available, sign it using
140140
Compression
141141
-----------
142142

143-
The eboot bootloader incorporates a GZIP decompressor, built for very low code requirements. For applications, this optional decompression is completely transparent. For uploading compressed filesystems, the application must be built with `ATOMIC_FS_UPDATE` defined because, otherwise, eboot will not be involved in writing the filesystem.
143+
The bootloader incorporates a GZIP decompressor, built for very low code requirements. For applications, this optional decompression is completely transparent.
144144

145-
No changes to the application are required. The `Updater` class and `eboot` bootloader (which performs actual application overwriting on update) automatically search for the `gzip` header in the uploaded binary, and if found, handle it.
145+
No changes to the application are required. The `Updater` class and bootloader (which performs actual application overwriting on update) automatically search for the `gzip` header in the uploaded binary, and if found, handle it.
146146

147147
Compress an application `.bin` file or filesystem package using any `gzip` available, at any desired compression level (`gzip -9` is recommended because it provides the maximum compression and uncompresses as fast as any other compression level). For example:
148148

@@ -305,7 +305,7 @@ The server-side script can respond as follows: - response code 200, and send the
305305
Serial.println("[update] Update no Update.");
306306
break;
307307
case HTTP_UPDATE_OK:
308-
Serial.println("[update] Update ok."); // may not be called since we reboot the RP2040
308+
Serial.println("[update] Update ok.");
309309
break;
310310
}
311311

libraries/HTTPUpdate/src/HTTPUpdate.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,11 +282,7 @@ HTTPUpdateResult HTTPUpdate::handleUpdate(HTTPClient& http, const String& curren
282282
_cbEnd();
283283
}
284284

285-
#ifdef ATOMIC_FS_UPDATE
286-
if (_rebootOnUpdate) {
287-
#else
288285
if (_rebootOnUpdate && !spiffs) {
289-
#endif
290286
rp2040.restart();
291287
}
292288

0 commit comments

Comments
 (0)