File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ int Arduino_ESP32_OTA::download(const char * ota_url)
189189 return static_cast <int >(Error::OtaHeaderLength);
190190 }
191191
192- if (_ota_header.header .magic_number != 0x45535033 )
192+ if (_ota_header.header .magic_number != ARDUINO_ESP32_OTA_MAGIC )
193193 {
194194 return static_cast <int >(Error::OtaHeaterMagicNumber);
195195 }
Original file line number Diff line number Diff line change 2626#include < WiFiClientSecure.h>
2727#include " decompress/utility.h"
2828
29+ /* *****************************************************************************
30+ DEFINES
31+ ******************************************************************************/
32+ #if defined (ARDUINO_NANO_ESP32)
33+ #define ARDUINO_ESP32_OTA_MAGIC 0x23410070
34+ #else
35+ #define ARDUINO_ESP32_OTA_MAGIC 0x45535033
36+ #endif
2937/* *****************************************************************************
3038 CONSTANTS
3139 ******************************************************************************/
You can’t perform that action at this time.
0 commit comments