Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Commit dd74d95

Browse files
committed
swapped length field byte order in write flash packet, fixes mistake in write flash packet (size field) #41
1 parent 72eecd0 commit dd74d95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/tool_patcher.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ function flash_generateCommand(data, address, totalSize) {
178178
const length_msb = 0x01;
179179
const length_lsb = 0x00;
180180

181-
return new Uint8Array([0x19, 0x5, 0xc, 0x1, 0x8a, 0x8d, 0x9f, 0x1d, address_msb, address_lsb, address_final_msb, address_final_lsb, length_msb, length_lsb, 0x0, 0x0, ...data]);
181+
return new Uint8Array([0x19, 0x5, 0xc, 0x1, 0x8a, 0x8d, 0x9f, 0x1d, address_msb, address_lsb, address_final_msb, address_final_lsb, length_lsb, length_msb, 0x0, 0x0, ...data]); // notice the inconsistent byte order as observed in the official updater tool
182182
}
183183

184184
// function to flash the firmware file to the radio

0 commit comments

Comments
 (0)