From e332f5d23a18a6e3d19a0cf3087f99d74ff8cbae Mon Sep 17 00:00:00 2001 From: ITCactus Date: Mon, 27 Dec 2021 12:13:42 +0100 Subject: [PATCH] [PineTime][InfiniTime][2527] remove debug Toast and subscription to UUID_CHARACTERISTIC_MOTION_RAW_XYZ_VALUES --- .../service/devices/pinetime/PineTimeJFSupport.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pinetime/PineTimeJFSupport.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pinetime/PineTimeJFSupport.java index c2f29a689..6205c8dc7 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pinetime/PineTimeJFSupport.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pinetime/PineTimeJFSupport.java @@ -470,7 +470,7 @@ public class PineTimeJFSupport extends AbstractBTLEDeviceSupport implements DfuL if (getSupportedServices().contains(PineTimeJFConstants.UUID_SERVICE_MOTION)) { builder.notify(getCharacteristic(PineTimeJFConstants.UUID_CHARACTERISTIC_MOTION_STEP_COUNT), true); - builder.notify(getCharacteristic(PineTimeJFConstants.UUID_CHARACTERISTIC_MOTION_RAW_XYZ_VALUES), true); + //builder.notify(getCharacteristic(PineTimeJFConstants.UUID_CHARACTERISTIC_MOTION_RAW_XYZ_VALUES), false); // issue #2527 } setInitialized(builder); @@ -635,7 +635,6 @@ public class PineTimeJFSupport extends AbstractBTLEDeviceSupport implements DfuL } else if (characteristicUUID.equals(PineTimeJFConstants.UUID_CHARACTERISTIC_MOTION_STEP_COUNT)) { int steps = BLETypeConversions.toUint32(characteristic.getValue()); if (LOG.isDebugEnabled()) { - GB.toast("Steps count: " + steps, Toast.LENGTH_SHORT, GB.INFO); LOG.debug("onCharacteristicChanged: MotionService:Steps=" + steps); } onReceiveStepsSample(steps);