From f24c872415ceff4cad60673a0a580f890cf17d40 Mon Sep 17 00:00:00 2001 From: jbr7rr <> Date: Tue, 11 Jul 2023 15:37:18 +0200 Subject: [PATCH] Set expiry to 72 hours --- .../pump/medtrum/ui/viewmodel/MedtrumOverviewViewModel.kt | 2 +- pump/medtrum/src/main/res/values/strings.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pump/medtrum/src/main/java/info/nightscout/pump/medtrum/ui/viewmodel/MedtrumOverviewViewModel.kt b/pump/medtrum/src/main/java/info/nightscout/pump/medtrum/ui/viewmodel/MedtrumOverviewViewModel.kt index 4a15896413..3c07719720 100644 --- a/pump/medtrum/src/main/java/info/nightscout/pump/medtrum/ui/viewmodel/MedtrumOverviewViewModel.kt +++ b/pump/medtrum/src/main/java/info/nightscout/pump/medtrum/ui/viewmodel/MedtrumOverviewViewModel.kt @@ -180,7 +180,7 @@ class MedtrumOverviewViewModel @Inject constructor( _patchNo.postValue(medtrumPump.patchId.toString()) if (medtrumPump.desiredPatchExpiration) { - val expiry = medtrumPump.patchStartTime + T.hours(84).msecs() + val expiry = medtrumPump.patchStartTime + T.hours(72).msecs() _patchExpiry.postValue(dateUtil.dateAndTimeString(expiry)) } else { _patchExpiry.postValue(rh.gs(R.string.expiry_not_enabled)) diff --git a/pump/medtrum/src/main/res/values/strings.xml b/pump/medtrum/src/main/res/values/strings.xml index 98f5ae6a8c..99b8478c92 100644 --- a/pump/medtrum/src/main/res/values/strings.xml +++ b/pump/medtrum/src/main/res/values/strings.xml @@ -133,7 +133,7 @@ Alarm Settings Select your preferred pump alarm settings. Patch Expiration - Turn this on to get an alert 12 hours before the patch expiration. When enabled, the patch will expire after 3.5 days. + When enabled, the patch will expire after 3 days, with a grace period of 8 hours after that. Hourly Maximum Insulin Specify the maximum units of insulin allowed per hour. If exceeded, the pump will suspend. Daily Maximum Insulin