@@ -242,8 +242,9 @@ Bluetooth._MyGattCallback = android.bluetooth.BluetoothGattCallback.extend({
242242 } ,
243243
244244 onCharacteristicRead : function ( bluetoothGatt , bluetoothGattCharacteristic , status ) {
245- if ( Bluetooth . characteristicLogging )
245+ if ( Bluetooth . characteristicLogging ) {
246246 console . log ( "------- _MyGattCallback.onCharacteristicRead" ) ;
247+ }
247248
248249 var device = bluetoothGatt . getDevice ( ) ;
249250 var stateObject = Bluetooth . _connections [ device . getAddress ( ) ] ;
@@ -263,8 +264,9 @@ Bluetooth._MyGattCallback = android.bluetooth.BluetoothGattCallback.extend({
263264 } ,
264265
265266 onCharacteristicChanged : function ( bluetoothGatt , bluetoothGattCharacteristic ) {
266- if ( Bluetooth . characteristicLogging )
267+ if ( Bluetooth . characteristicLogging ) {
267268 console . log ( "------- _MyGattCallback.onCharacteristicChanged" ) ;
269+ }
268270
269271 var device = bluetoothGatt . getDevice ( ) ;
270272 var stateObject = Bluetooth . _connections [ device . getAddress ( ) ] ;
@@ -284,8 +286,9 @@ Bluetooth._MyGattCallback = android.bluetooth.BluetoothGattCallback.extend({
284286 } ,
285287
286288 onCharacteristicWrite : function ( bluetoothGatt , bluetoothGattCharacteristic , status ) {
287- if ( Bluetooth . characteristicLogging )
289+ if ( Bluetooth . characteristicLogging ) {
288290 console . log ( "------- _MyGattCallback.onCharacteristicWrite" ) ;
291+ }
289292
290293 var device = bluetoothGatt . getDevice ( ) ;
291294 var stateObject = Bluetooth . _connections [ device . getAddress ( ) ] ;
@@ -294,8 +297,9 @@ Bluetooth._MyGattCallback = android.bluetooth.BluetoothGattCallback.extend({
294297 return ;
295298 }
296299
297- if ( Bluetooth . characteristicLogging )
300+ if ( Bluetooth . characteristicLogging ) {
298301 console . log ( bluetoothGattCharacteristic ) ;
302+ }
299303
300304 if ( stateObject . onWritePromise ) {
301305 stateObject . onWritePromise ( {
0 commit comments