From b1f4b527ec9fdeb3fb14bfec35d72e9a68939c09 Mon Sep 17 00:00:00 2001 From: OliE Date: Wed, 27 Dec 2017 12:33:46 +0100 Subject: [PATCH] corrected device check --- .../openscale/core/bluetooth/BluetoothSanitasSbf70.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothSanitasSbf70.java b/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothSanitasSbf70.java index 9ed59d83..2f96f3a2 100644 --- a/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothSanitasSbf70.java +++ b/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothSanitasSbf70.java @@ -121,12 +121,8 @@ public class BluetoothSanitasSbf70 extends BluetoothCommunication { @Override public boolean checkDeviceName(String btDeviceName) { - if (super.checkDeviceName(btDeviceName)) { - return true; - } - // SilverCrest SBF75 (also known as HealthForYou by SilverCrest) - if (btDeviceName.toLowerCase().startsWith("sbf75")) { + if (btDeviceName.toLowerCase().startsWith(new String("SANITAS SBF70").toLowerCase()) || btDeviceName.toLowerCase().startsWith("sbf75")) { return true; }