mirror of
https://github.com/silenty4ng/k5web
synced 2025-04-13 14:30:33 +00:00
update
This commit is contained in:
parent
dbb1c3aeb3
commit
c6f95f4725
1 changed files with 6 additions and 0 deletions
|
@ -95,6 +95,12 @@ const flashIt = async () => {
|
|||
const _data = new Uint8Array([0x30, 0x5, rawVersion.length, 0x0, ...rawVersion]);
|
||||
await sendPacket(_connect, _data);
|
||||
await readPacket(_connect, 0x18)
|
||||
|
||||
if(state.protocol == 'Official'){
|
||||
await sendPacket(_connect, _data);
|
||||
await readPacket(_connect, 0x18);
|
||||
}
|
||||
|
||||
const firmware = unpack(state.binaryFile);
|
||||
|
||||
if (firmware.length > 0xefff) throw new Error('Last resort boundary check failed. Whoever touched the code is an idiot.');
|
||||
|
|
Loading…
Add table
Reference in a new issue