Minimed: Detect manual temp basals entered in pump UI
We should be able to update loop state to recognize a manual temp basal issued from the pump, and put Loop into the same open loop manual temp basal state that Omnipod and DASH are implementing in dev. Placeholder code:
// Look for ongoing pump UI started temp basal
if let ongoingTempbasal = result.remainingEvents.first(where: { (event) -> Bool in
if let dose = event.dose,
dose.type == .tempBasal,
dose.endDate > Date()
{
return true
}
return false
}), let dose = ongoingTempbasal.dose {
state.unfinalizedTempBasal = UnfinalizedDose(tempBasalRate: dose.unitsPerHour, startTime: dose.startDate, duration: dose.endDate.timeIntervalSince(dose.startDate), insulinType: insulinType, automatic: false)
}
This issue is stale because it has been open for 30 days with no activity.
Should placeholder ideas like this just expire automatically?
This issue is stale because it has been open for 30 days with no activity.
If this has not been added, I believe this should stay open.
This issue is stale because it has been open for 30 days with no activity.
If this has not been added, I believe this should stay open.
This issue is stale because it has been open for 30 days with no activity.
Bump
This issue is stale because it has been open for 30 days with no activity.
Bump
This issue is stale because it has been open for 30 days with no activity.
Bump
This issue is stale because it has been open for 30 days with no activity.
Bump
This issue is stale because it has been open for 30 days with no activity.
Still desired.
This issue is stale because it has been open for 30 days with no activity.
Keeping this open.