mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
comment change
This commit is contained in:
@@ -2654,7 +2654,7 @@ void MyESP::_webserver_setup() {
|
|||||||
if (!index) {
|
if (!index) {
|
||||||
ETS_UART_INTR_DISABLE(); // disable all UART interrupts to be safe
|
ETS_UART_INTR_DISABLE(); // disable all UART interrupts to be safe
|
||||||
_writeEvent("INFO", "system", "Firmware update started", "");
|
_writeEvent("INFO", "system", "Firmware update started", "");
|
||||||
//Serial.printf("[SYSTEM] Firmware update started: %s\n", filename.c_str()); // enable for debugging XXX
|
//Serial.printf("[SYSTEM] Firmware update started: %s\n", filename.c_str()); // enable for debugging
|
||||||
Update.runAsync(true);
|
Update.runAsync(true);
|
||||||
if (!Update.begin((ESP.getFreeSketchSpace() - 0x1000) & 0xFFFFF000)) {
|
if (!Update.begin((ESP.getFreeSketchSpace() - 0x1000) & 0xFFFFF000)) {
|
||||||
_writeEvent("ERRO", "system", "Not enough space to update", "");
|
_writeEvent("ERRO", "system", "Not enough space to update", "");
|
||||||
|
|||||||
Reference in New Issue
Block a user