Skip to content

Commit 967e826

Browse files
committed
Fix magic number
1 parent 6bf2080 commit 967e826

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Arduino_ESP32_OTA.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 != 0x00000000)
192+
if (_ota_header.header.magic_number != 0x45535033)
193193
{
194194
return static_cast<int>(Error::OtaHeaterMagicNumber);
195195
}

0 commit comments

Comments
 (0)