fix AbstractBTLEDeviceSupport calling bleApi for unsuccessful onCharacteristicRead

This commit is contained in:
Thomas Kuehne
2025-05-02 18:31:11 +02:00
parent 01e7f31522
commit 0f91b5790b
@@ -378,7 +378,7 @@ public abstract class AbstractBTLEDeviceSupport extends AbstractDeviceSupport im
@Override
public boolean onCharacteristicRead(BluetoothGatt gatt,
BluetoothGattCharacteristic characteristic, int status) {
if(bleApi != null) {
if(bleApi != null && status == BluetoothGatt.GATT_SUCCESS) {
bleApi.onCharacteristicChanged(characteristic);
}