disable all automatic restarts when OTA has started

This commit is contained in:
technyon
2022-07-21 18:31:46 +02:00
parent 2ade696e8b
commit a24bb4b0c2
9 changed files with 35 additions and 7 deletions

2
Ota.h
View File

@@ -9,6 +9,8 @@ class Ota
public:
void updateFirmware(uint8_t* buf, size_t size);
bool updateStarted();
private:
bool _updateStarted = false;
esp_ota_handle_t otaHandler = 0;