dash BleIO: s/let/also
This commit is contained in:
parent
7976df596e
commit
c2627176cf
|
@ -84,9 +84,8 @@ class BleIO(
|
||||||
fun flushIncomingQueues() {
|
fun flushIncomingQueues() {
|
||||||
for (char in CharacteristicType.values()) {
|
for (char in CharacteristicType.values()) {
|
||||||
do {
|
do {
|
||||||
val found = incomingPackets[char]?.poll()
|
val found = incomingPackets[char]?.poll()?.also {
|
||||||
found?.let {
|
aapsLogger.warn(LTag.PUMPBTCOMM, "BleIO: ${char.name} queue not empty, flushing: {${it.toHex()}")
|
||||||
aapsLogger.warn(LTag.PUMPBTCOMM, "BleIO: ${char.name} queue not empty, flushing: {${found.toHex()}")
|
|
||||||
}
|
}
|
||||||
} while (found != null)
|
} while (found != null)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue