mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
fix AbstractBTLEDeviceSupport calling bleApi for unsuccessful onCharacteristicRead
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user