From a7792f6b7257b5afb329f7797d9299be9ea7b182 Mon Sep 17 00:00:00 2001 From: cpfeiffer Date: Sun, 24 May 2015 15:00:45 +0200 Subject: [PATCH] improve some log statements --- .../gadgetbridge/miband/MiBandNotifyAction.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/miband/MiBandNotifyAction.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/miband/MiBandNotifyAction.java index 508d4c40..585c6a17 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/miband/MiBandNotifyAction.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/miband/MiBandNotifyAction.java @@ -37,11 +37,11 @@ public class MiBandNotifyAction extends NotifyAction { if (notifyDescriptor != null) { int properties = getCharacteristic().getProperties(); if ((properties & 0x10) > 0) { - LOG.debug("properties & 0x10 > 0"); + LOG.debug("use NOTIFICATION"); notifyDescriptor.setValue(enableFlag ? BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE : BluetoothGattDescriptor.DISABLE_NOTIFICATION_VALUE); result = gatt.writeDescriptor(notifyDescriptor); - } else if ((properties & 0x20) > 0){ - LOG.debug("properties & 0x20 > 0"); + } else if ((properties & 0x20) > 0) { + LOG.debug("use INDICATION"); notifyDescriptor.setValue(enableFlag ? BluetoothGattDescriptor.ENABLE_INDICATION_VALUE : BluetoothGattDescriptor.DISABLE_NOTIFICATION_VALUE); result = gatt.writeDescriptor(notifyDescriptor); hasWrittenDescriptor = true;