You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like Loop is trying to display too many digits for mmol/L. Only 3 are ever needed at most. Actually , when the pump reports a bg <=99mg/dl only 2 are needed( so <=5.5mmol/L) but for consistency 3 is usually fine.
As one can see, this causes formatting bugs
Seeing as the data from the pump expresses the info in mg/dl and generally has 3 significant digits this could be accomplished with a formatting flag of %.1f
I was thinking that maybe, excuse my swift, but a member of the HKUnit that formats blood glocose or a subtype of sorts that does it. then any string for a glucose uses that.
Activity
beached commentedon Sep 5, 2016
I am testing the use of
To format the glucose hud display.
loudnate commentedon Sep 5, 2016
Thanks – the NSNumberFormatter significant digits setting is exactly how I planned to fix these cases.
The screenshots are really helpful. Please add any more where things aren't correct to this ticket!
beached commentedon Sep 5, 2016
I was thinking that maybe, excuse my swift, but a member of the HKUnit that formats blood glocose or a subtype of sorts that does it. then any string for a glucose uses that.
loudnate commentedon Sep 5, 2016
Yeah, that's what's existed here: https://github.com/loudnate/LoopKit/blob/master/LoopKit/HKUnit.swift#L21-L28
beached commentedon Sep 6, 2016
So that fixed the issue in issue in the glucosehud. Not the graphs or other areas.

beached commentedon Sep 16, 2016
Looks like the retrospective correction screen is hardwired to mg/dl

beached commentedon Sep 16, 2016
Actually, I am wrong, it does eventually but the scale is off

beached commentedon Sep 16, 2016
The units updated after checking/unchecking
Graph improvements
Graph improvements (#193)
Better fix for #159
Better fix for #159 (#199)
LOOP-1492: support therapy settings max bolus (#159)