fix #123 - No autoforward after initiated update

This commit is contained in:
regevbr
2023-03-14 15:49:03 +02:00
parent 8e6fa00bb6
commit f48773d34d
4 changed files with 47 additions and 7 deletions

3
Ota.h
View File

@@ -10,8 +10,11 @@ public:
void updateFirmware(uint8_t* buf, size_t size);
bool updateStarted();
bool updateCompleted();
void restart();
private:
bool _updateStarted = false;
bool _updateCompleted = false;
esp_ota_handle_t otaHandler = 0;
};