diff --git a/src/lib/serial/device.ts b/src/lib/serial/device.ts index 45ae9cd3..2b6c0120 100644 --- a/src/lib/serial/device.ts +++ b/src/lib/serial/device.ts @@ -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... } /** diff --git a/src/routes/ConnectionPopup.svelte b/src/routes/ConnectionPopup.svelte index 969bd38f..5770b07b 100644 --- a/src/routes/ConnectionPopup.svelte +++ b/src/routes/ConnectionPopup.svelte @@ -9,6 +9,9 @@ $serialPort?.reboot() $serialPort = undefined powerDialog = false + setTimeout(() => { + initSerial() + }, 1000) } function bootloader() {