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

@@ -7,8 +7,8 @@ android {
applicationId "no.nordicsemi.android.nrftoolbox"
minSdkVersion 18
targetSdkVersion 22
versionCode 29
versionName "1.12.0"
versionCode 30
versionName "1.12.1"
}
buildTypes {
release {

View File

@@ -23,8 +23,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="no.nordicsemi.android.nrftoolbox"
android:installLocation="auto"
android:versionCode="29"
android:versionName="1.12.0" >
android:versionCode="30"
android:versionName="1.12.1" >
<uses-sdk
android:minSdkVersion="18"

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