We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c793288 commit 0ebe3c2Copy full SHA for 0ebe3c2
src/Arduino_ESP32_OTA.cpp
@@ -76,6 +76,10 @@ Arduino_ESP32_OTA::Error Arduino_ESP32_OTA::begin()
76
DEBUG_ERROR("%s: board is not capable to perform OTA", __FUNCTION__);
77
return Error::NoOtaStorage;
78
}
79
+
80
+ /* initialize private variables */
81
+ _ota_size = 0;
82
+ _ota_header = {0};
83
84
if(!Update.begin(UPDATE_SIZE_UNKNOWN)) {
85
DEBUG_ERROR("%s: failed to initialize flash update", __FUNCTION__);
0 commit comments