Insert Announcement on pump alarm
This commit is contained in:
parent
2b86cb2dbf
commit
6a6af81ef7
1 changed files with 6 additions and 0 deletions
|
@ -449,6 +449,12 @@ class MedtrumService : DaggerService(), BLECommCallback {
|
|||
}
|
||||
if (alarmState != null && alarmState != AlarmState.NONE) {
|
||||
medtrumPump.addAlarm(alarmState)
|
||||
pumpSync.insertAnnouncement(
|
||||
medtrumPump.alarmStateToString(alarmState),
|
||||
null,
|
||||
medtrumPump.pumpType(),
|
||||
medtrumPump.pumpSN.toString(radix = 16)
|
||||
)
|
||||
}
|
||||
|
||||
// Map the pump state to a notification
|
||||
|
|
Loading…
Reference in a new issue