format: CTRL+Alt+L
This commit is contained in:
parent
154e74fc22
commit
da84c35b31
6 changed files with 15 additions and 18 deletions
|
@ -132,7 +132,7 @@ class OmnipodDashBleManagerImpl @Inject constructor(
|
|||
|
||||
aapsLogger.info(LTag.PUMPCOMM, "Got LTK: ${ltk.ltk.toHex()}")
|
||||
|
||||
// emitter.onNext(PodEvent.EstablishingSession)
|
||||
emitter.onNext(PodEvent.EstablishingSession)
|
||||
|
||||
val eapAkaExchanger = EapAkaExchanger(aapsLogger, msgIO, ltk)
|
||||
val sessionKeys = eapAkaExchanger.negotiateSessionKeys()
|
||||
|
|
|
@ -82,11 +82,11 @@ class BleIO(
|
|||
* The incoming queues should be empty, so we log when they are not.
|
||||
*/
|
||||
fun flushIncomingQueues() {
|
||||
for (chr in CharacteristicType.values()) {
|
||||
for (char in CharacteristicType.values()) {
|
||||
do {
|
||||
val found = incomingPackets[chr]?.poll()
|
||||
val found = incomingPackets[char]?.poll()
|
||||
found?.let {
|
||||
aapsLogger.warn(LTag.PUMPBTCOMM, "BleIO: CMD queue not empty, flushing: {${found.toHex()}")
|
||||
aapsLogger.warn(LTag.PUMPBTCOMM, "BleIO: ${char.name} queue not empty, flushing: {${found.toHex()}")
|
||||
}
|
||||
} while (found != null)
|
||||
}
|
||||
|
|
|
@ -111,9 +111,6 @@ class EapAkaExchanger(private val aapsLogger: AAPSLogger, private val msgIO: Mes
|
|||
|
||||
companion object {
|
||||
|
||||
private val MILENAGE_OP = Hex.decode("cdc202d5123e20f62b6d676ac72cb318")
|
||||
private val MILENAGE_AMF = Hex.decode("b9b9")
|
||||
private const val KEY_SIZE = 16 // 128 bits
|
||||
private const val IV_SIZE = 4
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue