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