diff --git a/android_app/app/build.gradle b/android_app/app/build.gradle index 8146ba57..04276333 100644 --- a/android_app/app/build.gradle +++ b/android_app/app/build.gradle @@ -7,8 +7,8 @@ android { applicationId "com.health.openscale" minSdkVersion 18 targetSdkVersion 22 // don't set target sdk > 22 otherwise bluetooth le discovery need permission to ACCESS_COARSE_LOCATION - versionCode 20 - versionName "1.6.1" + versionCode 21 + versionName "1.6.2" } lintOptions { diff --git a/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothBeurerBF700_800.java b/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothBeurerBF700_800.java index 45d8792e..b1d75018 100644 --- a/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothBeurerBF700_800.java +++ b/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothBeurerBF700_800.java @@ -125,7 +125,7 @@ public class BluetoothBeurerBF700_800 extends BluetoothCommunication { @Override public boolean checkDeviceName(String btDeviceName) { - if (btDeviceName.startsWith("BEURER BF700") || btDeviceName.startsWith("BEURER BF800")) { + if (btDeviceName.toLowerCase().equals(new String("BEURER BF700").toLowerCase()) || btDeviceName.toLowerCase().equals(new String("BEURER BF800").toLowerCase())) { return true; }