mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2025-12-11 13:26:16 +00:00
feat: auto-reconnect after reboot
This commit is contained in:
@@ -289,7 +289,6 @@ export class CharaDevice {
|
||||
*/
|
||||
async reboot() {
|
||||
await this.send("RST")
|
||||
// TODO: reconnect
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -297,7 +296,6 @@ export class CharaDevice {
|
||||
*/
|
||||
async bootloader() {
|
||||
await this.send("RST BOOTLOADER")
|
||||
// TODO: more...
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -9,6 +9,9 @@
|
||||
$serialPort?.reboot()
|
||||
$serialPort = undefined
|
||||
powerDialog = false
|
||||
setTimeout(() => {
|
||||
initSerial()
|
||||
}, 1000)
|
||||
}
|
||||
|
||||
function bootloader() {
|
||||
|
||||
Reference in New Issue
Block a user