Skip to content

Commit f274ce7

Browse files
committed
Bug fixed in data calculation in Glucose Profile.
Application was adding 2 to the proper month. Version set to 1.12.1.
1 parent 725f8f8 commit f274ce7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ android {
77
applicationId "no.nordicsemi.android.nrftoolbox"
88
minSdkVersion 18
99
targetSdkVersion 22
10-
versionCode 29
11-
versionName "1.12.0"
10+
versionCode 30
11+
versionName "1.12.1"
1212
}
1313
buildTypes {
1414
release {

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2424
package="no.nordicsemi.android.nrftoolbox"
2525
android:installLocation="auto"
26-
android:versionCode="29"
27-
android:versionName="1.12.0" >
26+
android:versionCode="30"
27+
android:versionName="1.12.1" >
2828

2929
<uses-sdk
3030
android:minSdkVersion="18"

app/src/main/java/no/nordicsemi/android/nrftoolbox/gls/GlucoseManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public void onCharacteristicNotified(BluetoothGatt gatt, BluetoothGattCharacteri
183183
offset += 2;
184184

185185
final int year = characteristic.getIntValue(BluetoothGattCharacteristic.FORMAT_UINT16, offset);
186-
final int month = characteristic.getIntValue(BluetoothGattCharacteristic.FORMAT_UINT8, offset + 2) + 1; // months are 1-based
186+
final int month = characteristic.getIntValue(BluetoothGattCharacteristic.FORMAT_UINT8, offset + 2) - 1; // months are 1-based
187187
final int day = characteristic.getIntValue(BluetoothGattCharacteristic.FORMAT_UINT8, offset + 3);
188188
final int hours = characteristic.getIntValue(BluetoothGattCharacteristic.FORMAT_UINT8, offset + 4);
189189
final int minutes = characteristic.getIntValue(BluetoothGattCharacteristic.FORMAT_UINT8, offset + 5);

0 commit comments

Comments
 (0)