(BluetoothGattCharacteristic c)
| 126 | } |
| 127 | |
| 128 | private void enableNotification(BluetoothGattCharacteristic c) { |
| 129 | synchronized(enableNotificationQueue) { |
| 130 | if (currentEnableNotification == null) { |
| 131 | currentEnableNotification = c; |
| 132 | if (!doEnableNotification(c)) |
| 133 | currentEnableNotification = null; |
| 134 | } else |
| 135 | enableNotificationQueue.add(c); |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | private void readHeartRateMeasurement(BluetoothGattCharacteristic c) { |
| 140 | int offset = 0; |
no test coverage detected