Skip to content

Add configurable CGM sensor lifetime for sensor change alarm#579

Open
bjorkert wants to merge 1 commit intodevfrom
configurable-cgm-sensor-lifetime
Open

Add configurable CGM sensor lifetime for sensor change alarm#579
bjorkert wants to merge 1 commit intodevfrom
configurable-cgm-sensor-lifetime

Conversation

@bjorkert
Copy link
Copy Markdown
Contributor

@bjorkert bjorkert commented Mar 28, 2026

Summary

  • Add a configurable sensor lifetime setting (7–15 days, default 10) to the Sensor Change Alert, so users with 15-day G7 sensors no longer get false early alerts
  • Add unit tests for SensorAgeCondition covering both 10-day and 15-day lifetimes plus edge cases
Simulator Screenshot - iPhone 17 Pro Max - 2026-03-28 at 20 34 26

The sensor change alarm was hardcoded to a 10-day lifetime, causing
false alerts for users with 15-day G7 sensors. Add a per-alarm
sensorLifetimeDays setting (7-15 days, default 10) so users can
match their actual sensor duration.

Also fix a bug where the sensor and pump change alarms would fire
when no insert time was available (defaulting to epoch 0).
@bjorkert bjorkert self-assigned this Mar 28, 2026
@bjorkert bjorkert linked an issue Mar 29, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update for G7 15 day

1 participant