Workaround for connection timeout alarm not alarming
This commit is contained in:
parent
6ccfb734d7
commit
932f651e57
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ class KeepAliveWorker(
|
||||||
}
|
}
|
||||||
if (loop.isDisconnected) {
|
if (loop.isDisconnected) {
|
||||||
// do nothing if pump is disconnected
|
// 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())
|
rxBus.send(EventProfileSwitchChanged())
|
||||||
} else if (isStatusOutdated && !pump.isBusy()) {
|
} else if (isStatusOutdated && !pump.isBusy()) {
|
||||||
lastReadStatus = now
|
lastReadStatus = now
|
||||||
|
|
Loading…
Reference in a new issue