lints
This commit is contained in:
parent
820f0db035
commit
24456e3c5d
1 changed files with 3 additions and 8 deletions
|
@ -1,8 +1,8 @@
|
||||||
package info.nightscout.pump.dana
|
package info.nightscout.pump.dana
|
||||||
|
|
||||||
import info.nightscout.interfaces.Constants
|
import info.nightscout.interfaces.Constants
|
||||||
import info.nightscout.interfaces.profile.Profile
|
|
||||||
import info.nightscout.interfaces.profile.Instantiator
|
import info.nightscout.interfaces.profile.Instantiator
|
||||||
|
import info.nightscout.interfaces.profile.Profile
|
||||||
import info.nightscout.interfaces.profile.ProfileStore
|
import info.nightscout.interfaces.profile.ProfileStore
|
||||||
import info.nightscout.interfaces.pump.PumpSync
|
import info.nightscout.interfaces.pump.PumpSync
|
||||||
import info.nightscout.interfaces.pump.defs.PumpType
|
import info.nightscout.interfaces.pump.defs.PumpType
|
||||||
|
@ -43,8 +43,8 @@ class DanaPump @Inject constructor(
|
||||||
SUSPENDED(0x01),
|
SUSPENDED(0x01),
|
||||||
DAILY_MAX(0x02),
|
DAILY_MAX(0x02),
|
||||||
BOLUS_BLOCK(0x04),
|
BOLUS_BLOCK(0x04),
|
||||||
ORDERDELIVERING(0x08),
|
ORDER_DELIVERING(0x08),
|
||||||
NOPRIME(0x10);
|
NO_PRIME(0x10);
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
|
||||||
|
@ -128,11 +128,6 @@ class DanaPump @Inject constructor(
|
||||||
var tempBasalDuration: Long = 0 // in milliseconds
|
var tempBasalDuration: Long = 0 // in milliseconds
|
||||||
var tempBasalPercent = 0
|
var tempBasalPercent = 0
|
||||||
|
|
||||||
var tempBasalTotalSec: Long
|
|
||||||
set(durationInSec) {
|
|
||||||
tempBasalDuration = T.secs(durationInSec).msecs()
|
|
||||||
}
|
|
||||||
get() = T.msecs(tempBasalDuration).mins()
|
|
||||||
var isTempBasalInProgress: Boolean
|
var isTempBasalInProgress: Boolean
|
||||||
get() = tempBasalStart != 0L && dateUtil.now() in tempBasalStart..tempBasalStart + tempBasalDuration
|
get() = tempBasalStart != 0L && dateUtil.now() in tempBasalStart..tempBasalStart + tempBasalDuration
|
||||||
set(isRunning) {
|
set(isRunning) {
|
||||||
|
|
Loading…
Reference in a new issue