make it compile

This commit is contained in:
Andrei Vereha 2021-05-28 23:37:00 +02:00
parent 7ee7cdd83b
commit ebb3030169
2 changed files with 3 additions and 0 deletions

View file

@ -166,6 +166,7 @@ class OmnipodDashBleManagerImpl @Inject constructor(
?: throw FailedToConnectException("connection lost") ?: throw FailedToConnectException("connection lost")
} }
@kotlin.ExperimentalStdlibApi
override fun pairNewPod(): Observable<PodEvent> = Observable.create { emitter -> override fun pairNewPod(): Observable<PodEvent> = Observable.create { emitter ->
if (!busy.compareAndSet(false, true)) { if (!busy.compareAndSet(false, true)) {
throw BusyException() throw BusyException()

View file

@ -23,6 +23,7 @@ internal class LTKExchanger(
private val keyExchange = KeyExchange(aapsLogger, X25519KeyGenerator(), RandomByteGenerator()) private val keyExchange = KeyExchange(aapsLogger, X25519KeyGenerator(), RandomByteGenerator())
private var seq: Byte = 1 private var seq: Byte = 1
@kotlin.ExperimentalStdlibApi
@Throws(PairingException::class) @Throws(PairingException::class)
fun negotiateLTK(): PairResult { fun negotiateLTK(): PairResult {
val sp1sp2 = PairMessage( val sp1sp2 = PairMessage(
@ -113,6 +114,7 @@ internal class LTKExchanger(
keyExchange.validatePodConf(payload) keyExchange.validatePodConf(payload)
} }
@kotlin.ExperimentalStdlibApi
private fun sp2(): ByteArray { private fun sp2(): ByteArray {
// This is GetPodStatus command, with page 0 parameter. // This is GetPodStatus command, with page 0 parameter.
// We could replace that in the future with the serialized GetPodStatus() // We could replace that in the future with the serialized GetPodStatus()