mirror of
https://github.com/aljazceru/Android-nRF-Toolbox.git
synced 2026-01-22 16:14:23 +01:00
Bug fixed in data calculation in Glucose Profile.
Application was adding 2 to the proper month. Version set to 1.12.1.
This commit is contained in:
@@ -183,7 +183,7 @@ public class GlucoseManager extends BleManager<GlucoseManagerCallbacks> {
|
||||
offset += 2;
|
||||
|
||||
final int year = characteristic.getIntValue(BluetoothGattCharacteristic.FORMAT_UINT16, offset);
|
||||
final int month = characteristic.getIntValue(BluetoothGattCharacteristic.FORMAT_UINT8, offset + 2) + 1; // months are 1-based
|
||||
final int month = characteristic.getIntValue(BluetoothGattCharacteristic.FORMAT_UINT8, offset + 2) - 1; // months are 1-based
|
||||
final int day = characteristic.getIntValue(BluetoothGattCharacteristic.FORMAT_UINT8, offset + 3);
|
||||
final int hours = characteristic.getIntValue(BluetoothGattCharacteristic.FORMAT_UINT8, offset + 4);
|
||||
final int minutes = characteristic.getIntValue(BluetoothGattCharacteristic.FORMAT_UINT8, offset + 5);
|
||||
|
||||
Reference in New Issue
Block a user