Skip to content

Commit 9f56617

Browse files
committed
Set the compression bit within the header to be compatible with the implementation done by cloud team
1 parent 106583a commit 9f56617

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extras/tools/bin2ota.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
print ("Error,", board, "is not a supported board type")
2727
sys.exit()
2828

29-
# Version field (byte array of size 8)
30-
version = bytearray(8)
29+
# Version field (byte array of size 8) - all 0 except the compression flag set.
30+
version = bytearray([0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40])
3131

3232
# Prepend magic number and version field to payload
3333
bin_data_complete = magic_number + version + bin_data

0 commit comments

Comments
 (0)