From cde9dfb6a5b80ebff77c2793916d5772d66d974e Mon Sep 17 00:00:00 2001 From: Daniel Dakhno Date: Tue, 10 Sep 2024 22:59:27 +0200 Subject: [PATCH] BLE Intent API: fixed characteristic read check --- .../freeyourgadget/gadgetbridge/service/btle/BleIntentApi.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btle/BleIntentApi.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btle/BleIntentApi.java index d5ee52aaa..7eb1ae6df 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btle/BleIntentApi.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/btle/BleIntentApi.java @@ -80,7 +80,7 @@ public class BleIntentApi { } String hexData = intent.getStringExtra("EXTRA_PAYLOAD"); - if (hexData == null) { + if (isWrite && (hexData == null)) { logger.error("BLE API: missing EXTRA_PAYLOAD"); return; }