You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Discord user Mr Mike is reporting issues with double insulin entries. At first it looked like issues with the time sync of the pump, but after looking closer the doubles insulin entries are marked from inside Trio (not from the history sync with the pump). After some investigation, I saw that the property replacePendingEvents isn't used in the pumpManager(hasNewPumpEvents) function inside the DeviceDataManager. This is a major problem for DanaKit, because DanaKit reports a bolus the following:
Send the bolus command to the pump and wait for the accepted response
Start the bolusReporter (for the Trio's UI) and report this bolus to the DeviceDataManager via pumpManager(hasNewPumpEvents), but leave the isMutable property inside the DoseEntry on true and set replacePendingEvents to false.
When the bolus has finished/cancelled/aborted, calculate the delivered amount, set the isMutable property to false and re-report the bolus but now with replacePendingEvents to true.
The old bolus should be deleted and the new bolus should sustain. But the both stay alive inside the insulin history (see screenshot)
See a double insulin entry in the insulin history (with possible different times, but can happen on the same time depending on pump settings and bolus amount)
Expected behavior
Whenever a pumpManager(hasNewPumpEvents) is called with replacePendingEvents: true, it should delete all the NewPumpEvents which have a dose containing isMutable: true.
I believe DanaKit is the only dependency inside Trio which uses this method. I am not sure if I can patch this without losing this functionality inside Loop
The text was updated successfully, but these errors were encountered:
Describe the bug
Discord user Mr Mike is reporting issues with double insulin entries. At first it looked like issues with the time sync of the pump, but after looking closer the doubles insulin entries are marked from inside Trio (not from the history sync with the pump). After some investigation, I saw that the property
replacePendingEvents
isn't used in the pumpManager(hasNewPumpEvents) function inside the DeviceDataManager. This is a major problem for DanaKit, because DanaKit reports a bolus the following:pumpManager(hasNewPumpEvents)
, but leave theisMutable
property inside the DoseEntry on true and setreplacePendingEvents
to false.replacePendingEvents
to true.Attach a Log
N.a.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Whenever a
pumpManager(hasNewPumpEvents)
is called withreplacePendingEvents: true
, it should delete all the NewPumpEvents which have a dose containingisMutable: true
.See Loop implementation:
Screenshots
Setup Information (please complete the following information):
Smartphone:
N.a.
Pump:
CGM:
N.a.
Trio Version:
Technical Details
I believe DanaKit is the only dependency inside Trio which uses this method. I am not sure if I can patch this without losing this functionality inside Loop
The text was updated successfully, but these errors were encountered: