File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,6 @@ export class EBB {
5151 }
5252 }
5353 } ) )
54- this . firmwareVersion ( ) . then ( ( version ) => console . log ( "Firmware version" , version ) ) ;
55- this . queryGeneral ( ) ; // clear the button press status on startup
5654 }
5755
5856 private get stepMultiplier ( ) {
Original file line number Diff line number Diff line change @@ -279,7 +279,10 @@ async function* ebbs(path?: string) {
279279 const closed = new Promise ( ( resolve ) => {
280280 port . addEventListener ( 'disconnect' , resolve , { once : true } )
281281 } ) ;
282- yield new EBB ( port ) ;
282+ const ebb = new EBB ( port ) ;
283+ ebb . firmwareVersion ( ) . then ( ( version ) => console . log ( "Firmware version" , version ) ) ;
284+ ebb . queryGeneral ( ) ; // clear the button press status on startup
285+ yield ebb ;
283286 await closed ;
284287 yield null ;
285288 console . error ( `Lost connection to EBB, reconnecting...` ) ;
You can’t perform that action at this time.
0 commit comments