Skip to content

Commit 30e0f5c

Browse files
committed
Add ESP32 support to bin2ota.py
1 parent 7a3dfb3 commit 30e0f5c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

extras/tools/bin2ota.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
magic_number = 0x2341025F.to_bytes(4,byteorder='little')
3131
elif board == "OPTA":
3232
magic_number = 0x23410064.to_bytes(4,byteorder='little')
33+
# Magic number for all ESP32 boards not related to (VID/PID)
34+
elif board == "ESP32":
35+
magic_number = 0x45535033.to_bytes(4,byteorder='little')
3336
else:
3437
print ("Error,", board, "is not a supported board type")
3538
sys.exit()

0 commit comments

Comments
 (0)