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)
189
189
return static_cast <int >(Error::OtaHeaderLength);
190
190
}
191
191
192
- if (_ota_header.header .magic_number != 0x45535033 )
192
+ if (_ota_header.header .magic_number != ARDUINO_ESP32_OTA_MAGIC )
193
193
{
194
194
return static_cast <int >(Error::OtaHeaterMagicNumber);
195
195
}
Original file line number Diff line number Diff line change 26
26
#include < WiFiClientSecure.h>
27
27
#include " decompress/utility.h"
28
28
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
29
37
/* *****************************************************************************
30
38
CONSTANTS
31
39
******************************************************************************/
You can’t perform that action at this time.
0 commit comments