Correctly handle dosing & pump events on discard (Loop issue #2382)#157
Correctly handle dosing & pump events on discard (Loop issue #2382)#157marionbarker merged 1 commit intoLoopKit:devfrom
Conversation
itsmojo
commented
Dec 11, 2025
- Invoke new PodComms handleDiscardedPodDosing() func from forgetPod()
- Move reworked handleCancelDosing() from PodCommsSession to PodState
- Add workaround for old pod sims that don't report a suspended pod on fault
…382) + Invoke new PodComms handleDiscardedPodDosing() func from forgetPod() + Move reworked handleCancelDosing() from PodCommsSession to PodState + Add workaround for old pod sims that don't report a suspended pod on fault
TestSummary:
Test DetailsConfiguration for rPi pod simulator
Configuration for Loop Test Phone
Test Various StatesAs was reported in Loop Issue 2382: OmniXXX Pump Manager does not properly handle a Discard event
List of States TestedFor each test, discard the pod and confirm the proper reporting. The ✅ indicates the test was successfully completed. The screenshots were saved for double-checking and display upon request, but the confirmation was done in real time. Only one set of screenshots is posted below.
|
marionbarker
left a comment
There was a problem hiding this comment.
I think the modification to OmniBLE/OmnipodCommon/MessageBlocks/DetailedStatus.swift should be reverted.
Approve the rest based on test.
marionbarker
left a comment
There was a problem hiding this comment.
I remove my request to revert OmniBLE/OmnipodCommon/MessageBlocks/DetailedStatus.swift.
- The modification to that file has no effect on the code, provided the correct message is returned from the simulated (or real) pod
- It has benefit to developers to keep it in when working with others who may not have their simulator up to date
- The code was thoroughly tested with this version
