1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-18 14:31:23 +02:00

Test if BF700 works more like a BF710

Issue #350
This commit is contained in:
Erik Johansson
2018-11-14 21:51:31 +01:00
parent 086ab695c9
commit 0595e5acbf

View File

@@ -29,14 +29,14 @@ public class BluetoothFactory {
final String name = deviceName.toLowerCase(Locale.US); final String name = deviceName.toLowerCase(Locale.US);
if (name.startsWith("BEURER BF700".toLowerCase(Locale.US)) if (name.startsWith("BEURER BF700".toLowerCase(Locale.US))
|| name.equals("BF700".toLowerCase(Locale.US))
|| name.startsWith("BEURER BF800".toLowerCase(Locale.US)) || name.startsWith("BEURER BF800".toLowerCase(Locale.US))
|| name.startsWith("BF-800".toLowerCase(Locale.US)) || name.startsWith("BF-800".toLowerCase(Locale.US))
|| name.startsWith("BF-700".toLowerCase(Locale.US)) || name.startsWith("BF-700".toLowerCase(Locale.US))
|| name.startsWith("RT-Libra-B".toLowerCase(Locale.US))) { || name.startsWith("RT-Libra-B".toLowerCase(Locale.US))) {
return new BluetoothBeurerSanitas(context, BluetoothBeurerSanitas.DeviceType.BEURER_BF700_800_RT_LIBRA); return new BluetoothBeurerSanitas(context, BluetoothBeurerSanitas.DeviceType.BEURER_BF700_800_RT_LIBRA);
} }
if (name.startsWith("BEURER BF710".toLowerCase(Locale.US))) { if (name.startsWith("BEURER BF710".toLowerCase(Locale.US))
|| name.equals("BF700".toLowerCase(Locale.US))) {
return new BluetoothBeurerSanitas(context, BluetoothBeurerSanitas.DeviceType.BEURER_BF710); return new BluetoothBeurerSanitas(context, BluetoothBeurerSanitas.DeviceType.BEURER_BF710);
} }
if (name.equals("openScale".toLowerCase(Locale.US))) { if (name.equals("openScale".toLowerCase(Locale.US))) {