Medtrum: Do not clearAlarms on going to ACTIVE

This commit is contained in:
jbr7rr 2023-10-08 19:49:40 +02:00
parent ccb7961e50
commit 30db06af65

View file

@ -322,6 +322,7 @@ class MedtrumService : DaggerService(), BLECommCallback {
}
// Resume suspended pump
if (result) result = sendPacketAndGetResponse(ResumePumpPacket(injector))
if (result) medtrumPump.clearAlarmState()
}
return result
}
@ -619,7 +620,6 @@ class MedtrumService : DaggerService(), BLECommCallback {
MedtrumPumpState.ACTIVE_ALT -> {
rxBus.send(EventDismissNotification(Notification.PATCH_NOT_ACTIVE))
rxBus.send(EventDismissNotification(Notification.PUMP_SUSPENDED))
medtrumPump.clearAlarmState()
}
MedtrumPumpState.LOW_BG_SUSPENDED,