add OTA file size sanity check

This commit is contained in:
technyon
2022-06-17 23:25:15 +02:00
parent efddec646d
commit 9e5388aee1
2 changed files with 9 additions and 3 deletions

2
Ota.h
View File

@@ -10,6 +10,6 @@ public:
void updateFirmware(uint8_t* buf, size_t size);
private:
bool _updateFlag = false;
bool _updateStarted = false;
esp_ota_handle_t otaHandler = 0;
};