Moyoung: Add missing GATT_SUCCESS check

This commit is contained in:
Arjan Schrijver
2025-06-11 20:58:00 +02:00
parent 99b496b225
commit 681d124288
@@ -80,7 +80,7 @@ public class FetchDataOperation extends AbstractBTLEOperation<MoyoungDeviceSuppo
else
{
UUID charUuid = characteristic.getUuid();
if (charUuid.equals(MoyoungConstants.UUID_CHARACTERISTIC_STEPS)) {
if (charUuid.equals(MoyoungConstants.UUID_CHARACTERISTIC_STEPS) && status == BluetoothGatt.GATT_SUCCESS) {
LOG.info("TODAY STEPS data: {}", Logging.formatBytes(value));
receivedSteps[0] = true;
decodeSteps(0, value);