From 00607a63a57fec8407df46a4f8d7fc25fe2f4311 Mon Sep 17 00:00:00 2001 From: OliE Date: Mon, 20 Aug 2018 21:21:58 +0200 Subject: [PATCH] add basic support for Yunmai mini 2 scale with device name YUNMAI-ISM2-EN --- .../com/health/openscale/core/bluetooth/BluetoothFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothFactory.java b/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothFactory.java index e994a870..7337e91a 100644 --- a/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothFactory.java +++ b/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothFactory.java @@ -75,7 +75,7 @@ public class BluetoothFactory { if (name.startsWith("SANITAS SBF70".toLowerCase(Locale.US)) || name.startsWith("sbf75")) { return new BluetoothBeurerSanitas(context, BluetoothBeurerSanitas.DeviceType.SANITAS_SBF70_70); } - if (deviceName.startsWith("YUNMAI-SIGNAL-M") || deviceName.startsWith("YUNMAI-ISM2-W")) { + if (deviceName.startsWith("YUNMAI-SIGNAL-M") || deviceName.startsWith("YUNMAI-ISM2-")) { return new BluetoothYunmaiSE_Mini(context, true); } if (deviceName.startsWith("YUNMAI-ISSE")) {