This commit is contained in:
Silent YANG 2024-01-30 22:32:44 +08:00
parent e15d71a259
commit 8c60fd8400
2 changed files with 2 additions and 6 deletions

View file

@ -259,9 +259,7 @@ const iFlashIt = async () => {
await sendPacket(_connect, _data);
await readPacket(_connect, 0x18)
await flash_flashFirmware(_connect, unpack(binary))
if(appStore.connectPort){
appStore.updateSettings({ connectPort: _connect });
}
appStore.updateSettings({ connectPort: _connect });
state.flashIt = true
state.loading = false
}

View file

@ -88,9 +88,7 @@ const flashIt = async () => {
const textarea = document?.getElementById('statusArea');
if(textarea)textarea.scrollTop = textarea?.scrollHeight;
})
if(appStore.connectPort){
appStore.updateSettings({ connectPort: _connect });
}
appStore.updateSettings({ connectPort: _connect });
}
</script>