make it compile
This commit is contained in:
parent
7ee7cdd83b
commit
ebb3030169
2 changed files with 3 additions and 0 deletions
|
@ -166,6 +166,7 @@ class OmnipodDashBleManagerImpl @Inject constructor(
|
|||
?: throw FailedToConnectException("connection lost")
|
||||
}
|
||||
|
||||
@kotlin.ExperimentalStdlibApi
|
||||
override fun pairNewPod(): Observable<PodEvent> = Observable.create { emitter ->
|
||||
if (!busy.compareAndSet(false, true)) {
|
||||
throw BusyException()
|
||||
|
|
|
@ -23,6 +23,7 @@ internal class LTKExchanger(
|
|||
private val keyExchange = KeyExchange(aapsLogger, X25519KeyGenerator(), RandomByteGenerator())
|
||||
private var seq: Byte = 1
|
||||
|
||||
@kotlin.ExperimentalStdlibApi
|
||||
@Throws(PairingException::class)
|
||||
fun negotiateLTK(): PairResult {
|
||||
val sp1sp2 = PairMessage(
|
||||
|
@ -113,6 +114,7 @@ internal class LTKExchanger(
|
|||
keyExchange.validatePodConf(payload)
|
||||
}
|
||||
|
||||
@kotlin.ExperimentalStdlibApi
|
||||
private fun sp2(): ByteArray {
|
||||
// This is GetPodStatus command, with page 0 parameter.
|
||||
// We could replace that in the future with the serialized GetPodStatus()
|
||||
|
|
Loading…
Reference in a new issue