Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing mmol unit conversion for lastEnacted.bg in openaps.js #8234

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

dsnallfot
Copy link

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

@bjornoleh
Copy link
Contributor

The fix was confirmed to be working here, also using iAPS. Thanks @dsnallfot!

@bjornoleh
Copy link
Contributor

Before fix:
image

After fix:
image

@Der-Schubi
Copy link

I can confirm the problem itself using AAPS and NS15
NS15

@bjornoleh
Copy link
Contributor

@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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants