mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-31 19:19:08 +03:00
updated comment
This commit is contained in:
@@ -133,8 +133,7 @@ void UploadFileService::uploadComplete(AsyncWebServerRequest * request) {
|
|||||||
// check if it was a firmware upgrade
|
// check if it was a firmware upgrade
|
||||||
// if no error, send the success response as a JSON
|
// if no error, send the success response as a JSON
|
||||||
if (_is_firmware && !request->_tempObject) {
|
if (_is_firmware && !request->_tempObject) {
|
||||||
// set NVS to tell EMS-ESP this is a new firmware on next restart
|
// set NVS to tell EMS-ESP this is a new fresh firmware on next restart
|
||||||
// we do this by removing the install date
|
|
||||||
emsesp::EMSESP::nvs_.putBool(emsesp::EMSESP_NVS_BOOT_NEW_FIRMWARE, true);
|
emsesp::EMSESP::nvs_.putBool(emsesp::EMSESP_NVS_BOOT_NEW_FIRMWARE, true);
|
||||||
|
|
||||||
AsyncWebServerResponse * response = request->beginResponse(200);
|
AsyncWebServerResponse * response = request->beginResponse(200);
|
||||||
|
|||||||
Reference in New Issue
Block a user