File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ import { ActionFeedback } from "../common/use-action-feedback";
19
19
import { Dialogs } from "../common/use-dialogs" ;
20
20
import {
21
21
ConnectionStatus ,
22
- ConnectOptions ,
23
22
DeviceConnection ,
24
23
AfterRequestDevice ,
25
24
FlashDataError ,
@@ -140,7 +139,7 @@ export class ProjectActions {
140
139
this . webusbNotSupportedError ( finalFocusRef ) ;
141
140
} else {
142
141
if ( await this . showConnectHelp ( forceConnectHelp , finalFocusRef ) ) {
143
- return this . connectInternal ( { } , userAction , finalFocusRef ) ;
142
+ return this . connectInternal ( userAction , finalFocusRef ) ;
144
143
}
145
144
}
146
145
} ;
@@ -190,12 +189,11 @@ export class ProjectActions {
190
189
* Connect to the device if possible, otherwise show feedback.
191
190
*/
192
191
private async connectInternal (
193
- options : ConnectOptions ,
194
192
userAction : ConnectionAction ,
195
193
finalFocusRef : FinalFocusRef
196
194
) {
197
195
try {
198
- await this . device . connect ( options ) ;
196
+ await this . device . connect ( ) ;
199
197
finalFocusRef ?. current ?. focus ( ) ;
200
198
return true ;
201
199
} catch ( e ) {
You can’t perform that action at this time.
0 commit comments