Skip to content

Fix Out of Range RMS not converting from mg/dl to mmol/l#8454

Merged
AndyLow91 merged 2 commits intonightscout:wip/next-releasefrom
luborjurena:fix/rms-mmol-conversion
Mar 17, 2026
Merged

Fix Out of Range RMS not converting from mg/dl to mmol/l#8454
AndyLow91 merged 2 commits intonightscout:wip/next-releasefrom
luborjurena:fix/rms-mmol-conversion

Conversation

@luborjurena
Copy link
Copy Markdown

Use entry.sgv (display units) instead of entry.bgValue (always mg/dl)
in the RMS loop so comparisons with options.targetLow/High are in
consistent units. Remove the incorrect post-hoc division by MMOL_TO_MGDL
since RMSTotal is now accumulated in display units directly.

Screenshot 2026-03-16 at 09 25 51 Screenshot 2026-03-16 at 09 51 25

@AndyLow91 AndyLow91 changed the base branch from dev to wip/next-release March 17, 2026 08:26
@AndyLow91 AndyLow91 merged commit cb67da5 into nightscout:wip/next-release Mar 17, 2026
20 of 21 checks passed
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.

2 participants