mirror of
https://github.com/aljazceru/Android-nRF-Toolbox.git
synced 2025-12-24 01:44: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:
@@ -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 {
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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