From 24456e3c5df6523889f6561992062547b5190a1c Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Wed, 15 Feb 2023 10:18:31 +0100 Subject: [PATCH] lints --- .../main/java/info/nightscout/pump/dana/DanaPump.kt | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/pump/dana/src/main/java/info/nightscout/pump/dana/DanaPump.kt b/pump/dana/src/main/java/info/nightscout/pump/dana/DanaPump.kt index 1936a240a5..ca23f60d8d 100644 --- a/pump/dana/src/main/java/info/nightscout/pump/dana/DanaPump.kt +++ b/pump/dana/src/main/java/info/nightscout/pump/dana/DanaPump.kt @@ -1,8 +1,8 @@ package info.nightscout.pump.dana import info.nightscout.interfaces.Constants -import info.nightscout.interfaces.profile.Profile import info.nightscout.interfaces.profile.Instantiator +import info.nightscout.interfaces.profile.Profile import info.nightscout.interfaces.profile.ProfileStore import info.nightscout.interfaces.pump.PumpSync import info.nightscout.interfaces.pump.defs.PumpType @@ -43,8 +43,8 @@ class DanaPump @Inject constructor( SUSPENDED(0x01), DAILY_MAX(0x02), BOLUS_BLOCK(0x04), - ORDERDELIVERING(0x08), - NOPRIME(0x10); + ORDER_DELIVERING(0x08), + NO_PRIME(0x10); companion object { @@ -128,11 +128,6 @@ class DanaPump @Inject constructor( var tempBasalDuration: Long = 0 // in milliseconds var tempBasalPercent = 0 - var tempBasalTotalSec: Long - set(durationInSec) { - tempBasalDuration = T.secs(durationInSec).msecs() - } - get() = T.msecs(tempBasalDuration).mins() var isTempBasalInProgress: Boolean get() = tempBasalStart != 0L && dateUtil.now() in tempBasalStart..tempBasalStart + tempBasalDuration set(isRunning) {