From 95b7d83d76b31699ebcb8092b5be03efeb1d33c4 Mon Sep 17 00:00:00 2001 From: Jantleing Date: Fri, 20 Jun 2025 15:11:28 +0200 Subject: [PATCH] Add Crane Bluetooth Scale (#1135) --- .../health/openscale/core/bluetooth/BluetoothBeurerSanitas.java | 2 +- .../com/health/openscale/core/bluetooth/BluetoothFactory.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothBeurerSanitas.java b/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothBeurerSanitas.java index c28e9980..44101c3b 100644 --- a/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothBeurerSanitas.java +++ b/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothBeurerSanitas.java @@ -174,7 +174,7 @@ public class BluetoothBeurerSanitas extends BluetoothCommunication { case BEURER_BF710: return "Beurer BF710"; case SANITAS_SBF70_70: - return "Sanitas SBF70/SilverCrest SBF75"; + return "Sanitas SBF70/SilverCrest SBF75/Crane"; } return "Unknown device type"; 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 c94bcfd0..df31a7d7 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 @@ -90,7 +90,7 @@ public class BluetoothFactory { if (name.equals("SENSSUN FAT".toLowerCase(Locale.US))) { return new BluetoothSenssun(context); } - if (name.startsWith("SANITAS SBF70".toLowerCase(Locale.US)) || name.startsWith("sbf75")) { + if (name.startsWith("SANITAS SBF70".toLowerCase(Locale.US)) || name.startsWith("sbf75") || name.startsWith("AICDSCALE1")) { return new BluetoothBeurerSanitas(context, BluetoothBeurerSanitas.DeviceType.SANITAS_SBF70_70); } if (deviceName.startsWith("YUNMAI-SIGNAL") || deviceName.startsWith("YUNMAI-ISM")) {