Closed dsnallfot closed 1 month ago
The fix was confirmed to be working here, also using iAPS. Thanks @dsnallfot!
Before fix:
After fix:
I can confirm the problem itself using AAPS and NS15
@bewest , this PR solves a problem for mmol users. I have tested it for some time now, and it works as expected here. Perhaps consider merging this? Thanks!
Closing PR due to no interest in this fix
@bewest @sulkaharo is there interest for this PR to be re-opened, actually looked at and possibly accepted?
Issue: The OpenAPS pill always shows enacted bg in mg/dl and does not convert units to mmol/l when mmol/l is the chosen user setting.
After some troubleshooting together with @bjornoleh and @JeremyStorring today we found out that there currently is no mmol units conversion in the code for prop.lastEnacted.bg. All other bg conversions in openaps.js works as expected.
Solution: This PR adds the units conversion for prop.lastEnacted.bg, and resolves the issue.
Testing The issue was identified while using iAPS as devicestatus uploader, and the code change have been tested to work with iAPS as uploader, but are most likely relevant for openAPS uploads in general (not tested).
Please review when suitable for you, and get back with any questions @sulkaharo @bewest