mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-28 18:49:56 +02:00
corrected device check
This commit is contained in:
@@ -121,12 +121,8 @@ public class BluetoothSanitasSbf70 extends BluetoothCommunication {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean checkDeviceName(String btDeviceName) {
|
public boolean checkDeviceName(String btDeviceName) {
|
||||||
if (super.checkDeviceName(btDeviceName)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
// SilverCrest SBF75 (also known as HealthForYou by SilverCrest)
|
// 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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user