dash ble: warnings
This commit is contained in:
parent
0f58185109
commit
20179781ef
|
@ -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")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue