File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,12 @@ class USBWorkflow extends Workflow {
125
125
// This would help with other workflows as well
126
126
} else {
127
127
console . log ( 'Requesting any serial device...' ) ;
128
- device = await navigator . serial . requestPort ( ) ;
128
+ try {
129
+ device = await navigator . serial . requestPort ( ) ;
130
+ } catch ( e ) {
131
+ console . log ( e ) ;
132
+ return false ;
133
+ }
129
134
}
130
135
131
136
// If we didn't automatically use a saved device
@@ -155,7 +160,7 @@ class USBWorkflow extends Workflow {
155
160
btnSelectHostFolder . disabled = true ;
156
161
let serialConnect = async ( event ) => {
157
162
try {
158
- await this . connectToSerial ( ) ;
163
+ await this . showBusy ( this . connectToSerial ( ) ) ;
159
164
} catch ( e ) {
160
165
//console.log(e);
161
166
//alert(e.message);
You can’t perform that action at this time.
0 commit comments