Repository navigation
Conversation
enactBolus rethrows the pump's error for doses with a remote origin, including uncertain delivery, so the remote command reports the failure to its sender and sends the remote bolus failure notification.
A remote bolus is refused when insulin the sender could not have seen adds up to 20 % or more of the requested amount, and a remote carb entry is refused when any carb entry was added that the sender had not seen. Unseen means dated after the command was sent, not uploaded to Nightscout, or uploaded after the newest treatment the sender had fetched. A running bolus and the last accepted remote bolus count. Commands are checked one at a time and are carried out as sent or refused.
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.
Checks each remote bolus and carb command against the history, the running bolus and the last accepted remote bolus, one command at a time. Depends on LoopKit/LoopKit#704 and #2691. Context in LoopKit/LoopWorkspace#594.