LoopKit / Loop

An automated insulin delivery app for iOS, built on LoopKit
https://loopdocs.org
Other
1.48k stars 1.29k forks source link

Medtronic State incorrect after Bolus is Cancelled #2193

Open marionbarker opened 1 month ago

marionbarker commented 1 month ago

Describe the bug With a Medtronic Pump, issue a bolus and cancel it after it starts.

Attach an Issue Report I have the Xcode debug log for a test where this happened.

Phone

Loop Version

CGM

Pump

Additional context I have seen a few Facebook questions about this - didn't really pay attention until I tested today.

Repeated testing:

elnjensen commented 1 month ago

I believe that cancelling a bolus on a Medtronic pump (at least the ones we use for Loop) always leaves the pump in a suspended state. You've noted this in your edits.

I think it has been the case for a long time that issuing a manual bolus from the pump has unsuspended it. I've always taken that as intentional, a design feature reflecting a presumed user desire to bolus.

I'm not sure at this point whether you still think there is an issue here? Or just that the behavior could be better documented?

elnjensen commented 1 month ago

The one way I have found to put the pump and Loop into an inconsistent state is as follows:

I believe that Loop will eventually notice and restore its state correctly, the same way it detects a manual resume from the pump interface, so the impact is small.

This deserves its own issue, but I haven't gotten around to writing it up. If someone can confirm, feel free to open a new issue and copy over any of this that's useful. The fix would be for Loop to check with the pump after an attempted suspend to verify that the suspend command had succeeded, even if there is no error.

marionbarker commented 1 month ago

Thanks Eric. I clearly was confused. I was testing pods and then switched to MDT.

I’m not sure what the design is regarding manual bolus when MDT pump is suspended.

I plan to do more testing later when I get time.