From d501b97d8d8d523fb10dbb8f9aadf501053e4085 Mon Sep 17 00:00:00 2001 From: Krisjans Blukis Date: Tue, 27 Jul 2021 16:36:39 +0300 Subject: [PATCH] BluetoothStandardWeightProfile: make debug messages about unhandled notifications more explicit; --- .../core/bluetooth/BluetoothStandardWeightProfile.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothStandardWeightProfile.java b/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothStandardWeightProfile.java index 4424d7d4..97c75d31 100644 --- a/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothStandardWeightProfile.java +++ b/android_app/app/src/main/java/com/health/openscale/core/bluetooth/BluetoothStandardWeightProfile.java @@ -225,8 +225,10 @@ public class BluetoothStandardWeightProfile extends BluetoothCommunication { } else if(characteristic.equals(BluetoothGattUuid.CHARACTERISTIC_USER_CONTROL_POINT)) { handleUserControlPointNotify(value); - } else { - Timber.d(String.format("Got data: <%s>", byteInHex(value))); + } + else { + Timber.d(String.format("Notification from unhandled characteristic: %s, value: [%s]", + characteristic.toString(), byteInHex(value))); } }