DiabetesCompass / Diabetes_Compass

iOS code for type 1 diabetes management
MIT License
4 stars 0 forks source link

Wrong estimated ha1c displayed on home screen #45

Closed calferness closed 7 years ago

calferness commented 7 years ago

When 12 hrs time has elapsed with no BG readings such that the circular slider is called for BG input, the resultant HA1c first displayed is in error until the screen is refreshed or the trend screen called & returned. Sometimes, the value displayed is even 0.00, which is, of course, an impossible value (a blood glucose of 0 would yield 1.67% by the formula). at other times it appears to be the oldest HA1c value rather than the newest in the ha1c array. This is, I think, accessed from HomeViewController via NeedBGSegue to AddBGOverlayViewController.

calferness commented 7 years ago

Further investigation reveals that this occurs when adding a BG reading the usual way also. This occurs on my iPhone as well as simulator.