Update active alerts from default status response in Pod state

This commit is contained in:
Bart Sopers 2021-02-28 18:46:49 +01:00
parent bf060da878
commit 8e7e2450ae

View file

@ -154,8 +154,7 @@ class OmnipodDashPodStateManagerImpl @Inject constructor(
podState.pulsesRemaining = response.reservoirPulsesRemaining podState.pulsesRemaining = response.reservoirPulsesRemaining
podState.sequenceNumberOfLastProgrammingCommand = response.sequenceNumberOfLastProgrammingCommand podState.sequenceNumberOfLastProgrammingCommand = response.sequenceNumberOfLastProgrammingCommand
podState.minutesSinceActivation = response.minutesSinceActivation podState.minutesSinceActivation = response.minutesSinceActivation
podState.activeAlerts = response.activeAlerts
// TODO active alerts
podState.lastUpdated = System.currentTimeMillis() podState.lastUpdated = System.currentTimeMillis()
store() store()