From f274ce7e0e276a1b67ad1776a78b41c0caba5662 Mon Sep 17 00:00:00 2001 From: Aleksander Nowakowski Date: Tue, 7 Apr 2015 11:21:57 +0200 Subject: [PATCH] Bug fixed in data calculation in Glucose Profile. Application was adding 2 to the proper month. Version set to 1.12.1. --- app/build.gradle | 4 ++-- app/src/main/AndroidManifest.xml | 4 ++-- .../no/nordicsemi/android/nrftoolbox/gls/GlucoseManager.java | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 851d411f..fb29324d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -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 { diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 4c5104d3..acf0f856 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -23,8 +23,8 @@ + android:versionCode="30" + android:versionName="1.12.1" > { 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);