1
0
Fork 0
mirror of https://github.com/silenty4ng/k5web synced 2025-04-13 14:30:33 +00:00
This commit is contained in:
Silent YANG 2024-07-01 22:38:27 +08:00
parent c6f95f4725
commit 725b939278

View file

@ -93,8 +93,6 @@ const flashIt = async () => {
await readPacket(_connect, 0x18, 1000);
const rawVersion = unpackVersion(state.binaryFile);
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);