ktlintFormat
This commit is contained in:
parent
d3c73f9665
commit
b64d530ae9
|
@ -33,7 +33,6 @@ import io.reactivex.Observable
|
|||
import io.reactivex.Single
|
||||
import io.reactivex.rxkotlin.blockingSubscribeBy
|
||||
import io.reactivex.rxkotlin.subscribeBy
|
||||
import io.reactivex.rxkotlin.toCompletable
|
||||
import org.json.JSONObject
|
||||
import java.util.*
|
||||
import javax.inject.Inject
|
||||
|
|
|
@ -662,7 +662,6 @@ class OmnipodDashManagerImpl @Inject constructor(
|
|||
// TODO: is it bad if we increment this sequence number when we failed to send the command?
|
||||
}
|
||||
|
||||
|
||||
is PodEvent.ResponseReceived -> {
|
||||
podStateManager.increaseMessageSequenceNumber()
|
||||
handleResponse(event.response)
|
||||
|
|
|
@ -86,7 +86,7 @@ class Connection(
|
|||
val msgIO = MessageIO(aapsLogger, cmdBleIO, dataBleIO)
|
||||
|
||||
fun connect() {
|
||||
if (session!=null) {
|
||||
if (session != null) {
|
||||
disconnect()
|
||||
}
|
||||
aapsLogger.debug("Connecting")
|
||||
|
|
|
@ -2,7 +2,6 @@ package info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.pod.state
|
|||
|
||||
import android.os.SystemClock
|
||||
import com.google.gson.Gson
|
||||
import info.nightscout.androidaps.data.PumpEnactResult
|
||||
import info.nightscout.androidaps.logging.AAPSLogger
|
||||
import info.nightscout.androidaps.logging.LTag
|
||||
import info.nightscout.androidaps.plugins.bus.RxBusWrapper
|
||||
|
@ -20,7 +19,6 @@ import info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.pod.response.
|
|||
import info.nightscout.androidaps.utils.sharedPreferences.SP
|
||||
import io.reactivex.Completable
|
||||
import io.reactivex.Maybe
|
||||
import io.reactivex.Single
|
||||
import java.io.Serializable
|
||||
import java.util.*
|
||||
import javax.inject.Inject
|
||||
|
|
|
@ -39,7 +39,7 @@ class DashHistory @Inject constructor(
|
|||
fun createRecord(
|
||||
commandType: OmnipodCommandType,
|
||||
date: Long = System.currentTimeMillis(),
|
||||
initialResult: InitialResult = InitialResult.CREATED,
|
||||
initialResult: InitialResult = InitialResult.NOT_SENT,
|
||||
tempBasalRecord: TempBasalRecord? = null,
|
||||
bolusRecord: BolusRecord? = null,
|
||||
resolveResult: ResolvedResult? = null,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package info.nightscout.androidaps.plugins.pump.omnipod.dash.history.data
|
||||
|
||||
enum class InitialResult {
|
||||
CREATED, FAILURE_SENDING, UNCONFIRMED, SENT
|
||||
NOT_SENT, FAILURE_SENDING, UNCONFIRMED, SENT
|
||||
}
|
||||
|
||||
enum class ResolvedResult {
|
||||
|
|
Loading…
Reference in a new issue