Skip to content

Commit

Permalink
make it compile
Browse files Browse the repository at this point in the history
  • Loading branch information
avereha committed May 28, 2021
1 parent 7ee7cdd commit ebb3030
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit ebb3030

Please sign in to comment.