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

Merge branch 'matushorvath-hfy_silvercrest'

This commit is contained in:
OliE
2017-12-27 12:34:06 +01:00
2 changed files with 11 additions and 1 deletions

View File

@@ -111,7 +111,7 @@ public class BluetoothSanitasSbf70 extends BluetoothCommunication {
@Override
public String deviceName() {
return "Sanitas SBF70";
return "Sanitas SBF70/SilverCrest SBF75";
}
@Override
@@ -119,6 +119,16 @@ public class BluetoothSanitasSbf70 extends BluetoothCommunication {
return "SANITAS SBF70";
}
@Override
public boolean checkDeviceName(String btDeviceName) {
// SilverCrest SBF75 (also known as HealthForYou by SilverCrest)
if (btDeviceName.toLowerCase().startsWith(new String("SANITAS SBF70").toLowerCase()) || btDeviceName.toLowerCase().startsWith("sbf75")) {
return true;
}
return false;
}
@Override
boolean nextInitCmd(int stateNr) {

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB