DiabetesCompass / Diabetes_Compass

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

TrendsAlgorithmModel doesn't get called #12

Closed calferness closed 7 years ago

calferness commented 7 years ago

HA1c readings aren't calculated each time a new BG reading is added.

calferness commented 7 years ago

The method for calculating HA1c caused a crash. So, the call was commented out. I changed the HA1c calculation method to a simpler formula (and uncommented the call), which also doesn't use as much memory. This solved the problem such that HA1c is now being calculated with each BG entry.