Remove some superfluous checks
This commit is contained in:
parent
321c0ff125
commit
5b8bf468f5
|
@ -401,10 +401,6 @@ public final class BtLEQueue {
|
|||
if (!checkCorrectGattInstance(gatt, "characteristic changed")) {
|
||||
return;
|
||||
}
|
||||
if (gatt != mBluetoothGatt) {
|
||||
LOG.info("Ignoring characteristic change event from wrong BluetoothGatt instance");
|
||||
return;
|
||||
}
|
||||
if (getCallbackToUse() != null) {
|
||||
getCallbackToUse().onCharacteristicChanged(gatt, characteristic);
|
||||
} else {
|
||||
|
@ -418,10 +414,6 @@ public final class BtLEQueue {
|
|||
if (!checkCorrectGattInstance(gatt, "remote rssi")) {
|
||||
return;
|
||||
}
|
||||
if (gatt != mBluetoothGatt) {
|
||||
LOG.info("Ignoring remote rssi event from wrong BluetoothGatt instance");
|
||||
return;
|
||||
}
|
||||
if (getCallbackToUse() != null) {
|
||||
getCallbackToUse().onReadRemoteRssi(gatt, rssi, status);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue