File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import MBSpecs from '../microbit-interfacing/MBSpecs';
1414import { gestures } from './Stores' ;
1515import { HexOrigin } from '../../StaticConfiguration' ;
1616import { DeviceRequestStates } from '../microbit-interfacing/MicrobitConnection' ;
17- import { logError } from '../utils/logging' ;
17+ import { logError , logEvent } from '../utils/logging' ;
1818
1919// TODO: Rename? Split up further?
2020
@@ -28,6 +28,11 @@ if (compatibilityResult.bluetooth) {
2828 . getAvailability ( )
2929 . then ( bluetoothAvailable => {
3030 compatibility . update ( s => {
31+ logEvent ( {
32+ type : 'Device' ,
33+ action : 'Bluetooth available' ,
34+ value : s . bluetooth && bluetoothAvailable ? 1 : 0 ,
35+ } ) ;
3136 s . bluetooth = s . bluetooth && bluetoothAvailable ;
3237 return s ;
3338 } ) ;
You can’t perform that action at this time.
0 commit comments