Skip to content

Commit 06de27a

Browse files
committed
Working implementation of Board Root detection.
Signed-off-by: ubi de feo <me@ubidefeo.com>
1 parent 80e37a3 commit 06de27a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ui/arduino/store.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,10 @@ async function store(state, emitter) {
285285
}
286286
emitter.emit('open-panel')
287287
emitter.emit('render')
288-
await serialBridge.getPrompt()
288+
if (state.isConnected) {
289+
await serialBridge.getPrompt()
290+
}
291+
289292
})
290293
emitter.on('reset', async () => {
291294
log('reset')
@@ -603,7 +606,7 @@ async function store(state, emitter) {
603606
}
604607
await serialBridge.saveFileContent(
605608
serialBridge.getFullPath(
606-
'/',
609+
state.boardNavigationRoot,
607610
state.boardNavigationPath,
608611
fileNameParameter
609612
),
@@ -782,7 +785,7 @@ async function store(state, emitter) {
782785
if (file.source === 'board') {
783786
await serialBridge.removeFile(
784787
serialBridge.getFullPath(
785-
'/',
788+
state.boardNavigationRoot,
786789
state.boardNavigationPath,
787790
file.fileName
788791
)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy