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:
Aleksander Nowakowski
2015-04-07 11:21:57 +02:00
parent 725f8f8ea8
commit f274ce7e0e
3 changed files with 5 additions and 5 deletions

View File

@@ -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);