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';
14
14
import { gestures } from './Stores' ;
15
15
import { HexOrigin } from '../../StaticConfiguration' ;
16
16
import { DeviceRequestStates } from '../microbit-interfacing/MicrobitConnection' ;
17
- import { logError } from '../utils/logging' ;
17
+ import { logError , logEvent } from '../utils/logging' ;
18
18
19
19
// TODO: Rename? Split up further?
20
20
@@ -28,6 +28,11 @@ if (compatibilityResult.bluetooth) {
28
28
. getAvailability ( )
29
29
. then ( bluetoothAvailable => {
30
30
compatibility . update ( s => {
31
+ logEvent ( {
32
+ type : 'Device' ,
33
+ action : 'Bluetooth available' ,
34
+ value : s . bluetooth && bluetoothAvailable ? 1 : 0 ,
35
+ } ) ;
31
36
s . bluetooth = s . bluetooth && bluetoothAvailable ;
32
37
return s ;
33
38
} ) ;
You can’t perform that action at this time.
0 commit comments