Repository navigation
Test a fault's bolus not delivered larger than the bolus in progress - #227
Merged
Merged
Conversation
…us in progress An Omnipod 5 0x22 reset fault has reported a bolus not delivered word of $07FF, which decodes as 51.15 U. Any value larger than the bolus in progress can't be right, so take the safe side and count the bolus as delivered, up to the fault time, for every fault. This was already the effect of the guard in UnfinalizedDose.cancel; now handlePodFault says so and logs the raw value. The check is made after an unacknowledged command is recovered, so a bolus whose response was lost still has its real remainder subtracted.
…es a remainder larger than the bolus
yurique
added a commit
to Artificial-Pancreas/OmnipodKit
that referenced
this pull request
Nov 27, 2026
…unting, stale PeripheralManager, unresponsive pod handling Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This was referenced Nov 30, 2026
LucasSHYC
pushed a commit
to LucasSHYC/LoopWorkspace
that referenced
this pull request
Dec 2, 2026
8df3d7be...4f59a04e - Test a fault's bolus not delivered larger than the bolus in progress (loopandlearn/OmnipodKit#227); test only, no app code change Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds tests for how a fault's bolus-not-delivered value is handled. It doesn't change any code.
An Omnipod 5 can report
$07FFin the bolus-not-delivered word on a reset fault (0x22). After the 10-bit mask, that reads as 51.15 U (LoopKit/pod#32).UnfinalizedDose.cancelalready ignores a remainder larger than the bolus. These tests pin that behavior down:$07FFduring a 2 U bolus counts the whole 2 U as delivered, stopped at the fault minute.OmniTests: 214 tests, 0 failures.