mirror of
https://github.com/aljazceru/Android-nRF-Toolbox.git
synced 2025-12-24 01:44:23 +01:00
HRM parser bug fixed
This commit is contained in:
@@ -78,7 +78,7 @@ public class HeartRateMeasurementParser {
|
||||
if (rrIntervalStatus) {
|
||||
for (int o = offset; o < characteristic.getValue().length; o += 2) {
|
||||
final int units = characteristic.getIntValue(BluetoothGattCharacteristic.FORMAT_UINT16, o);
|
||||
rrIntervals.add(units * 1024.0f / 1000.0f); // RR interval is in [1/1024s]
|
||||
rrIntervals.add(units * 1000.0f / 1024.0f); // RR interval is in [1/1024s]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user