mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-02-18 05:17:08 +01:00
[PineTime][InfiniTime][2527] remove debug Toast and subscription to UUID_CHARACTERISTIC_MOTION_RAW_XYZ_VALUES
This commit is contained in:
parent
b0ed617072
commit
e332f5d23a
@ -470,7 +470,7 @@ public class PineTimeJFSupport extends AbstractBTLEDeviceSupport implements DfuL
|
|||||||
|
|
||||||
if (getSupportedServices().contains(PineTimeJFConstants.UUID_SERVICE_MOTION)) {
|
if (getSupportedServices().contains(PineTimeJFConstants.UUID_SERVICE_MOTION)) {
|
||||||
builder.notify(getCharacteristic(PineTimeJFConstants.UUID_CHARACTERISTIC_MOTION_STEP_COUNT), true);
|
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);
|
setInitialized(builder);
|
||||||
@ -635,7 +635,6 @@ public class PineTimeJFSupport extends AbstractBTLEDeviceSupport implements DfuL
|
|||||||
} else if (characteristicUUID.equals(PineTimeJFConstants.UUID_CHARACTERISTIC_MOTION_STEP_COUNT)) {
|
} else if (characteristicUUID.equals(PineTimeJFConstants.UUID_CHARACTERISTIC_MOTION_STEP_COUNT)) {
|
||||||
int steps = BLETypeConversions.toUint32(characteristic.getValue());
|
int steps = BLETypeConversions.toUint32(characteristic.getValue());
|
||||||
if (LOG.isDebugEnabled()) {
|
if (LOG.isDebugEnabled()) {
|
||||||
GB.toast("Steps count: " + steps, Toast.LENGTH_SHORT, GB.INFO);
|
|
||||||
LOG.debug("onCharacteristicChanged: MotionService:Steps=" + steps);
|
LOG.debug("onCharacteristicChanged: MotionService:Steps=" + steps);
|
||||||
}
|
}
|
||||||
onReceiveStepsSample(steps);
|
onReceiveStepsSample(steps);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user