dash ble: warnings

This commit is contained in:
Andrei Vereha 2021-04-02 14:33:09 +02:00
parent 0f58185109
commit 20179781ef
2 changed files with 1 additions and 2 deletions

View file

@ -48,7 +48,7 @@ internal class LTKExchanger(
seq++ seq++
val sps2 = sps2() val sps2 = sps2()
val sp2Result = msgIO.sendMessage(sps2.messagePacket) val sp2Result = msgIO.sendMessage(sps2.messagePacket)
if (sp1Result !is MessageSendSuccess) { if (sp2Result !is MessageSendSuccess) {
throw PairingException("Could not send sps2: $sp2Result") throw PairingException("Could not send sps2: $sp2Result")
} }

View file

@ -42,7 +42,6 @@ class Session(
fun sendCommand(cmd: Command): CommandSendResult { fun sendCommand(cmd: Command): CommandSendResult {
sessionKeys.msgSequenceNumber++ sessionKeys.msgSequenceNumber++
aapsLogger.debug(LTag.PUMPBTCOMM, "Sending command: ${cmd.encoded.toHex()} in packet $cmd") aapsLogger.debug(LTag.PUMPBTCOMM, "Sending command: ${cmd.encoded.toHex()} in packet $cmd")
var tries = 0
val msg = getCmdMessage(cmd) val msg = getCmdMessage(cmd)
var possiblyUnconfirmedCommand = false var possiblyUnconfirmedCommand = false