mirror of
https://github.com/silenty4ng/k5web
synced 2025-01-09 13:24:38 +00:00
update
This commit is contained in:
parent
e15d71a259
commit
8c60fd8400
2 changed files with 2 additions and 6 deletions
|
@ -259,9 +259,7 @@ const iFlashIt = async () => {
|
||||||
await sendPacket(_connect, _data);
|
await sendPacket(_connect, _data);
|
||||||
await readPacket(_connect, 0x18)
|
await readPacket(_connect, 0x18)
|
||||||
await flash_flashFirmware(_connect, unpack(binary))
|
await flash_flashFirmware(_connect, unpack(binary))
|
||||||
if(appStore.connectPort){
|
appStore.updateSettings({ connectPort: _connect });
|
||||||
appStore.updateSettings({ connectPort: _connect });
|
|
||||||
}
|
|
||||||
state.flashIt = true
|
state.flashIt = true
|
||||||
state.loading = false
|
state.loading = false
|
||||||
}
|
}
|
||||||
|
|
|
@ -88,9 +88,7 @@ const flashIt = async () => {
|
||||||
const textarea = document?.getElementById('statusArea');
|
const textarea = document?.getElementById('statusArea');
|
||||||
if(textarea)textarea.scrollTop = textarea?.scrollHeight;
|
if(textarea)textarea.scrollTop = textarea?.scrollHeight;
|
||||||
})
|
})
|
||||||
if(appStore.connectPort){
|
appStore.updateSettings({ connectPort: _connect });
|
||||||
appStore.updateSettings({ connectPort: _connect });
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue