fix: handle Connect/Disconnect failure state

This commit is contained in:
Vlad Stan 2022-07-14 18:21:16 +03:00
parent d80ae7de1b
commit 0e87e6608f

View file

@ -546,6 +546,7 @@ new Vue({
this.serial.writer = textEncoder.writable.getWriter()
} catch (error) {
this.serial.selectedPort = null
this.$q.notify({
type: 'warning',
message: 'Cannot open serial port!',
@ -573,6 +574,7 @@ new Vue({
timeout: 5000
})
} catch (error) {
this.serial.selectedPort = null
console.log('### error', error)
this.$q.notify({
type: 'warning',