Skip to content

Show a temporary sensor issue in G7 settings - #99

Merged
ps2 merged 1 commit into
next-devfrom
fix/g7-settings-sensor-issue
Oct 22, 2026
Merged

ps2 merged 1 commit into
next-devfrom
fix/g7-settings-sensor-issue

Conversation

@ps2

@ps2 ps2 commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #97.

While the latest reading reports a temporary sensor issue (algorithm state 18), the home screen shows "Sensor Issue", but G7 settings only showed – – – and the remaining lifetime. Settings now uses the same check as the status highlight (algorithmState.hasTemporaryError):

  • The last-reading row shows a warning badge and "Sensor Issue" instead of dashes.
  • The Sensor section shows a note: the sensor is reporting a temporary problem and isn't sending readings. They usually come back on their own, which can take up to 3 hours. There's no need to remove the sensor, and a meter should be used for treatment decisions until then.

Neither appears once the session is over (expired or failed), where "Replace Sensor" still takes precedence.

Testing: built with the LoopWorkspace scheme, and checked in the iOS Simulator against g7sim set to "Temporary sensor issue" (state 18): the last-reading row shows "Sensor Issue" and the note appears in the Sensor section.

G7 settings showing Sensor Issue

Simulator, with g7sim reporting state 18. The "Simulated Sensor" warning is g7sim's own.

While the latest reading reports a temporary sensor issue (state 18), the last-reading row shows "Sensor Issue" instead of dashes, and the Sensor section explains that readings usually resume on their own. Same check as the "Sensor Issue" status highlight.
@ps2
ps2 merged commit d3b81f5 into next-dev Oct 22, 2026
@ps2
ps2 deleted the fix/g7-settings-sensor-issue branch October 22, 2026 21:42
ps2 added a commit to LoopKit/LoopWorkspace that referenced this pull request Oct 22, 2026
- G7SensorKit: calibration reply decoding and stale calibration expiry (LoopKit/G7SensorKit#98), reconnect after a SystemMemoryReset (LoopKit/G7SensorKit#100), temporary sensor issue in settings (LoopKit/G7SensorKit#99)
- LoopSupport: view the diagnostic report before sharing or sending it (LoopKit/LoopSupport#42)
- OmnipodKit: pump view signal loss uses the last response time (loopandlearn/OmnipodKit#196)
- EversenseKit: retry GetTxCertificate with tx_flags inverted on the 365 (LoopKit/EversenseKit#8)
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.

1 participant