Skip to content

Commit f542eb7

Browse files
committed
Getting prompt before performing serial operations (saving)
1 parent a21c792 commit f542eb7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ui/arduino/store.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ async function store(state, emitter) {
272272
// Check if the current full path exists
273273
let fullPathExists = false
274274
if (openFile.source == 'board') {
275+
await serial.get_prompt()
275276
fullPathExists = await serial.fileExists(
276277
serial.getFullPath(
277278
state.boardNavigationRoot,
@@ -294,6 +295,7 @@ async function store(state, emitter) {
294295
if (openFile.source == 'board') {
295296
openFile.parentFolder = state.boardNavigationPath
296297
// Check for overwrite
298+
await serial.get_prompt()
297299
willOverwrite = await serial.fileExists(
298300
serial.getFullPath(
299301
state.boardNavigationRoot,

0 commit comments

Comments
 (0)