mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-10-28 11:14:58 +00:00
formatting
This commit is contained in:
@@ -32,10 +32,10 @@ void UploadFileService::handleUpload(AsyncWebServerRequest * request, const Stri
|
|||||||
// check details of the file, to see if its a valid bin or json file
|
// check details of the file, to see if its a valid bin or json file
|
||||||
const std::size_t filesize = request->contentLength();
|
const std::size_t filesize = request->contentLength();
|
||||||
|
|
||||||
_is_firmware = false;
|
_is_firmware = false;
|
||||||
_is_filesystem = false;
|
_is_filesystem = false;
|
||||||
_is_recovery = false;
|
_is_recovery = false;
|
||||||
_response_sent = false;
|
_response_sent = false;
|
||||||
|
|
||||||
switch (OtaUpdater::classify(filename, filesize, emsesp::System::MIN_FIRMWARE_SIZE)) {
|
switch (OtaUpdater::classify(filename, filesize, emsesp::System::MIN_FIRMWARE_SIZE)) {
|
||||||
case OtaUpdater::FileType::FILESYSTEM:
|
case OtaUpdater::FileType::FILESYSTEM:
|
||||||
|
|||||||
+1
-1
@@ -83,7 +83,7 @@ class System {
|
|||||||
|
|
||||||
static void check_crash_loop(); // call at boot once NVS is open, may restart into the factory partition
|
static void check_crash_loop(); // call at boot once NVS is open, may restart into the factory partition
|
||||||
|
|
||||||
void recovery_installed(); // called on the AsyncTCP task after the recovery firmware was written
|
void recovery_installed(); // called on the AsyncTCP task after the recovery firmware was written
|
||||||
std::string recovery_version() const; // empty if there's no recovery firmware
|
std::string recovery_version() const; // empty if there's no recovery firmware
|
||||||
|
|
||||||
// commands
|
// commands
|
||||||
|
|||||||
Reference in New Issue
Block a user