File tree 1 file changed +4
-2
lines changed 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,8 @@ var app = {
57
57
deviceList . appendChild ( listItem ) ;
58
58
59
59
var deviceListLength = deviceList . getElementsByTagName ( 'li' ) . length ;
60
- app . setStatus ( "Found " + deviceListLength + " device" + ( deviceListLength === 1 ? "." : "s." ) ) ;
60
+ app . setStatus ( "Found " + deviceListLength +
61
+ " device" + ( deviceListLength === 1 ? "." : "s." ) ) ;
61
62
} ,
62
63
onScanComplete : function ( ) {
63
64
var deviceListLength = deviceList . getElementsByTagName ( 'li' ) . length ;
@@ -88,7 +89,8 @@ var app = {
88
89
brightness . value = data [ 0 ] ;
89
90
} ) ;
90
91
91
- ble . startNotification ( peripheral . id , LED_SERVICE , POWER_SWITCH , function ( buffer ) {
92
+ ble . startNotification ( peripheral . id , LED_SERVICE , POWER_SWITCH ,
93
+ function ( buffer ) {
92
94
var data = new Uint8Array ( buffer ) ;
93
95
powerSwitch . checked = data [ 0 ] !== 0 ;
94
96
} ) ;
You can’t perform that action at this time.
0 commit comments