3.4.2 Medtronic Overlapping Basals

Open
#4,941 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
kotlin
Domain
mobile

Research direction

Compare temp-basal handling between versions 3.3.2.1 and 3.4.2.3, focusing on how pump history supplies the stopped basal's end time. Reproduce the overlapping-basal state shown in the Treatments screenshots and verify that a normal update records the correct end time and IOB without requiring an app restart.

Written by the indexing model from the issue text.

Description

Being a bit behind, I just recently updated from 3.3.2.1 to 3.4.2.3
Somewhere between those versions a critical, previously fixed bug was reintroduced.

When temp basals are set, then stopped/updated with a new basal on a subsequent loop cycle the stopped basal does not get updated with the time that it finished, leading to significantly incorrect IOB. Since someone like myself using SMB, there is a higher likelihood of zero-temp basals stacking incorrectly, leading to lower IOBs and then to insulin overdosing.

Previously this was solved by getting a complete history from the pump, which then would populate the end time of the basal correctly. It looks like this may have been removed for some reason along the way?

Two screenshots from the treatments view below shows this behavior on the left, and a matching view taken after restarting AAPS (which forces a full history refresh from the pump)

Image
Dominant language
Kotlin
Stars
1.2k
Forks
6.4k
Avg merge
2d 7h
Merged PRs (30d)
19

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nightscout/AndroidAPS

All issues in nightscout/AndroidAPS

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.