File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -826,8 +826,6 @@ class Boost {
826826 * Disconnects from the current BLE socket and resets state.
827827 */
828828 disconnect ( ) {
829- console . log ( 'BOOST DISCONNECT CALLED' ) ;
830-
831829 if ( this . _ble ) {
832830 this . _ble . disconnect ( ) ;
833831 }
@@ -839,8 +837,6 @@ class Boost {
839837 * Reset all the state and timeout/interval ids.
840838 */
841839 reset ( ) {
842- console . log ( 'BOOST RESET CALLED' ) ;
843-
844840 this . _ports = [ ] ;
845841 this . _motors = [ ] ;
846842 this . _sensors = {
Original file line number Diff line number Diff line change @@ -599,9 +599,7 @@ class EV3 {
599599 /**
600600 * Called by the runtime when user wants to disconnect from the EV3 peripheral.
601601 */
602- disconnect ( ) {
603- console . log ( 'EV3 DISCONNECT CALLED' ) ;
604-
602+ disconnect ( ) {
605603 if ( this . _bt ) {
606604 this . _bt . disconnect ( ) ;
607605 }
@@ -612,9 +610,7 @@ class EV3 {
612610 /**
613611 * Reset all the state and timeout/interval ids.
614612 */
615- reset ( ) {
616- console . log ( 'EV3 RESET CALLED' ) ;
617-
613+ reset ( ) {
618614 this . _sensorPorts = [ ] ;
619615 this . _motorPorts = [ ] ;
620616 this . _sensors = {
Original file line number Diff line number Diff line change @@ -209,9 +209,7 @@ class GdxFor {
209209 * Called by the runtime when a user exits the connection popup.
210210 * Disconnect from the GDX FOR.
211211 */
212- disconnect ( ) {
213- console . log ( 'GDXFOR DISCONNECT CALLED' ) ;
214-
212+ disconnect ( ) {
215213 if ( this . _ble ) {
216214 this . _ble . disconnect ( ) ;
217215 }
@@ -223,8 +221,6 @@ class GdxFor {
223221 * Reset all the state and timeout/interval ids.
224222 */
225223 reset ( ) {
226- console . log ( 'GDXFOR RESET CALLED' ) ;
227-
228224 this . _sensors = {
229225 force : 0 ,
230226 accelerationX : 0 ,
Original file line number Diff line number Diff line change @@ -238,9 +238,7 @@ class MicroBit {
238238 /**
239239 * Disconnect from the micro:bit.
240240 */
241- disconnect ( ) {
242- console . log ( 'MICROBIT DISCONNECT CALLED' ) ;
243-
241+ disconnect ( ) {
244242 if ( this . _ble ) {
245243 this . _ble . disconnect ( ) ;
246244 }
@@ -251,9 +249,7 @@ class MicroBit {
251249 /**
252250 * Reset all the state and timeout/interval ids.
253251 */
254- reset ( ) {
255- console . log ( 'MICROBIT RESET CALLED' ) ;
256-
252+ reset ( ) {
257253 if ( this . _timeoutID ) {
258254 window . clearTimeout ( this . _timeoutID ) ;
259255 this . _timeoutID = null ;
Original file line number Diff line number Diff line change @@ -609,9 +609,7 @@ class WeDo2 {
609609 /**
610610 * Disconnects from the current BLE socket.
611611 */
612- disconnect ( ) {
613- console . log ( 'WEDO2 DISCONNECT CALLED' ) ;
614-
612+ disconnect ( ) {
615613 if ( this . _ble ) {
616614 this . _ble . disconnect ( ) ;
617615 }
@@ -622,9 +620,7 @@ class WeDo2 {
622620 /**
623621 * Reset all the state and timeout/interval ids.
624622 */
625- reset ( ) {
626- console . log ( 'WEDO2 RESET CALLED' ) ;
627-
623+ reset ( ) {
628624 this . _ports = [ 'none' , 'none' ] ;
629625 this . _motors = [ null , null ] ;
630626 this . _sensors = {
Original file line number Diff line number Diff line change @@ -72,8 +72,6 @@ class BLE extends JSONRPC {
7272 * Close the websocket.
7373 */
7474 disconnect ( ) {
75- console . log ( 'BLE DISCONNECT CALLED' ) ;
76-
7775 if ( this . _connected ) {
7876 this . _connected = false ;
7977 }
@@ -203,10 +201,8 @@ class BLE extends JSONRPC {
203201 * Disconnect the socket, and if the extension using this socket has a
204202 * reset callback, call it. Finally, emit an error to the runtime.
205203 */
206- handleDisconnectError ( e ) {
207- console . error ( `BLE error: ${ JSON . stringify ( e ) } ` ) ;
208- console . error ( e ) ;
209- console . log ( 'BLE HANDLEDISCONNECTERROR CALLED' ) ;
204+ handleDisconnectError ( /* e */ ) {
205+ // log.error(`BLE error: ${JSON.stringify(e)}`);
210206
211207 if ( ! this . _connected ) return ;
212208
Original file line number Diff line number Diff line change @@ -78,9 +78,7 @@ class BT extends JSONRPC {
7878 /**
7979 * Close the websocket.
8080 */
81- disconnect ( ) {
82- console . log ( 'BT DISCONNECT CALLED' ) ;
83-
81+ disconnect ( ) {
8482 if ( this . _connected ) {
8583 this . _connected = false ;
8684 }
@@ -149,10 +147,8 @@ class BT extends JSONRPC {
149147 * Disconnect the socket, and if the extension using this socket has a
150148 * reset callback, call it. Finally, emit an error to the runtime.
151149 */
152- handleDisconnectError ( e ) {
153- console . error ( `BT error: ${ JSON . stringify ( e ) } ` ) ;
154- console . error ( e ) ;
155- console . log ( 'BT HANDLEDISCONNECTERROR CALLED' ) ;
150+ handleDisconnectError ( /* e */ ) {
151+ // log.error(`BT error: ${JSON.stringify(e)}`);
156152
157153 if ( ! this . _connected ) return ;
158154
You can’t perform that action at this time.
0 commit comments