Repository navigation
Conversation
When the initial basal schedule went unacknowledged during pod setup, the Pair Pod button in settings reopened the prime screen. prime() then asked the pod for status, saw basal initialized, and sent the 2.6 U prime bolus again because it only recognized priming and priming completed. The pod took that bolus as the cannula insertion bolus. In IR-J7SKK8AG a third prime sent while that bolus ran faulted the pod with 0x31 (049). prime() now returns right away when the pod reports progress past priming. The Pair Pod button opens insert cannula when priming is done and the pod is attached, as reopening pod setup already does.
# Conflicts: # OmniTests/PodCommsSessionTests.swift
|
Here's some additional description items related to this unacknowledged initial basal schedule command failure. 2a. The unacknowledged command puts up a 3a.. In this view there is an inappropriate 4a. The current prime() checking was written assuming that it could only be called OmniUICoordinator.determineInitialStep() which would be sure only go to the .pairAndPrime view if the setup had not progressed to the .insertCannula view. The newer Besides making prime() able to gracefully handle being called any time, the more general problem that this failure shows is that the Pump View needs to be updated to behave reasonably with an unacknowledged command recovery during pod setup (e.g., display |
|
Obsoleted by OmnpodKit PR #231 |
marionbarker
left a comment
There was a problem hiding this comment.
Approve by Claude code review and test build using Loop main.
If we prefer 228 over 231, I'll add an approval here.
|
close this PR in favor of PR #231 |
During pod setup,
prime()could send the 2.6 U prime bolus again after the pod had already finished priming. The pod then took that bolus as the cannula insertion bolus.This happened in an issue report from a DASH pod:
prime()read the pod's status and saw basal initialized. It only treats priming and priming completed as done, so it sent the prime again. The pod started cannula insertion with 2.6 U instead of 0.5 U.Changes:
prime()returns right away, without sending anything, when the pod reports basal initialized, inserting cannula or a running state.determineInitialStep).Test:
testPrimeAfterThePodHasMovedOnSendsNoPrime. OmniTests: 213 tests, 0 failures.