Skip to content

Commit f4c8f5c

Browse files
committed
Switch to disk device when disconnected
1 parent 1d87f82 commit f4c8f5c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ui/arduino/store.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ function store(state, emitter) {
6868
state.serialPath = null
6969
state.isTerminalOpen = false
7070
state.serialFiles = []
71+
72+
if (state.selectedDevice === 'serial') {
73+
state.selectedDevice = 'disk'
74+
}
75+
7176
emitter.emit('render')
7277
resizeEditor(state)
7378
})

0 commit comments

Comments
 (0)