When mmol/L units are selected as the default unit for blood glucose measurements in HealthKit, loop crashes on startup.
Activity
Create a lock screen widget (aka Today Extension) (#281)
ps2 commentedon Dec 11, 2016
@bharat It looks like we can't construct a mmol/L HKUnit from string directly.
http://stackoverflow.com/questions/30177741/how-do-i-construct-a-healthkit-hkunit-for-mmol-l-millimoles-per-liter-for-bloo
We do have a helper for constructing this unit: https://github.com/LoopKit/LoopKit/blob/master/LoopKit/HKUnit.swift#L17
I'm not entirely sure how this used to work; it looks like the unit was passed in to these functions, before, and now it's a string passed in.
bharat commentedon Dec 11, 2016
I have an idea what's going on here. Will work on it today (have a window in a couple of hours)
bharat commentedon Dec 11, 2016
I've reproduced the issue - working on a fix now.
Properly support mmol/L in the status extension.
Writes and reads of shouldDisplayAccurateCarbEntryWarning should happ…