From 99615544ee59a23ad9a739de765ed745692ca0e5 Mon Sep 17 00:00:00 2001 From: jbr7rr <> Date: Wed, 19 Jul 2023 12:04:17 +0200 Subject: [PATCH] Revert "Workaround for connection timeout alarm not alarming" This reverts commit 932f651e5762547a9b9d3abd10f1bf0664d4dd6f. --- .../info/nightscout/androidaps/receivers/KeepAliveWorker.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/receivers/KeepAliveWorker.kt b/app/src/main/java/info/nightscout/androidaps/receivers/KeepAliveWorker.kt index 56c500fdc5..29e9207399 100644 --- a/app/src/main/java/info/nightscout/androidaps/receivers/KeepAliveWorker.kt +++ b/app/src/main/java/info/nightscout/androidaps/receivers/KeepAliveWorker.kt @@ -191,7 +191,7 @@ class KeepAliveWorker( } if (loop.isDisconnected) { // do nothing if pump is disconnected - } else if (runningProfile == null || ((!pump.isThisProfileSet(requestedProfile) || !requestedProfile.isEqual(runningProfile) /*|| (runningProfile is ProfileSealed.EPS && runningProfile.value.originalEnd < dateUtil.now())*/) && !commandQueue.isRunning(Command.CommandType.BASAL_PROFILE))) { + } else if (runningProfile == null || ((!pump.isThisProfileSet(requestedProfile) || !requestedProfile.isEqual(runningProfile) || (runningProfile is ProfileSealed.EPS && runningProfile.value.originalEnd < dateUtil.now())) && !commandQueue.isRunning(Command.CommandType.BASAL_PROFILE))) { rxBus.send(EventProfileSwitchChanged()) } else if (isStatusOutdated && !pump.isBusy()) { lastReadStatus = now