Skip to content

Describe calibration state 18 as "Temporary sensor issue", not warm-up - #229

Open
scrappy wants to merge 1 commit into
LoopKit:devfrom
scrappy:lk-temporary-sensor-issue
Open

scrappy wants to merge 1 commit into
LoopKit:devfrom
scrappy:lk-temporary-sensor-issue

Conversation

@scrappy

@scrappy scrappy commented Oct 24, 2026

Copy link
Copy Markdown

CalibrationState.localizedDescription groups .questionMarks (raw 18, Dexcom's "???" / temporary sensor issue) with .warmup, so a sensor that drops into the ??? state mid-session is described as "Sensor is warming up". This gives state 18 its own description, "Temporary sensor issue", and adds the string to Localizable.xcstrings (source language only).

No behavioural change: hasReliableGlucose already returns false for .questionMarks; only the displayed description differs.

Reported against iAPS (Artificial-Pancreas/iAPS#254), which consumes this framework through a fork that tracks dev here; the fork has the same change (Artificial-Pancreas#7).

Dexcom's "???" state (CalibrationState.questionMarks, raw 18) shared the
"Sensor is warming up" description with .warmup, so a mid-session sensor
glitch was reported as a warm-up. Give it its own string.

Fixes Artificial-Pancreas/iAPS#254

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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