1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2025-01-13 19:27:33 +01:00

BLE Intent API: fixed characteristic read check

This commit is contained in:
Daniel Dakhno 2024-09-10 22:59:27 +02:00
parent 4875b0e1fe
commit cde9dfb6a5

View File

@ -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;
}