From 22a9ff1819be383e3bf75873530b58ef876b0a26 Mon Sep 17 00:00:00 2001 From: cpfeiffer Date: Wed, 9 Sep 2015 23:23:38 +0200 Subject: [PATCH] Log when no listener is registered for a characteristic change --- .../freeyourgadget/gadgetbridge/service/btle/BtLEQueue.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btle/BtLEQueue.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btle/BtLEQueue.java index a7f6d6a3..dd8fdb53 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btle/BtLEQueue.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btle/BtLEQueue.java @@ -403,6 +403,8 @@ public final class BtLEQueue { } if (getCallbackToUse() != null) { getCallbackToUse().onCharacteristicChanged(gatt, characteristic); + } else { + LOG.info("No gattcallback registered, ignoring characteristic change"); } }