diff --git a/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/driver/comm/OmnipodDashBleManagerImpl.kt b/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/driver/comm/OmnipodDashBleManagerImpl.kt index e523272db6..0b9eee3a52 100644 --- a/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/driver/comm/OmnipodDashBleManagerImpl.kt +++ b/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/driver/comm/OmnipodDashBleManagerImpl.kt @@ -166,6 +166,7 @@ class OmnipodDashBleManagerImpl @Inject constructor( ?: throw FailedToConnectException("connection lost") } + @kotlin.ExperimentalStdlibApi override fun pairNewPod(): Observable = Observable.create { emitter -> if (!busy.compareAndSet(false, true)) { throw BusyException() diff --git a/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/driver/comm/pair/LTKExchanger.kt b/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/driver/comm/pair/LTKExchanger.kt index 0482a12660..da5a5cbb96 100644 --- a/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/driver/comm/pair/LTKExchanger.kt +++ b/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/driver/comm/pair/LTKExchanger.kt @@ -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()