1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-28 10:40:47 +02:00

corrected device check

This commit is contained in:
OliE
2017-12-27 12:33:46 +01:00
parent 48cd15a404
commit b1f4b527ec

View File

@@ -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;
}