Skip to content

Conversation

@marionbarker
Copy link
Collaborator

@marionbarker marionbarker commented May 3, 2025

Purpose

Bring in improvements added to the dev branch since the tidepool-merge branch was first pushed to LoopKit

Test

Start with a local clone using the LoopWorkspace tidepool-merge branch:

  • Confirm this built and attach a DASH pod, using rPi DASH simulator
  • Clean the build folder, close Xcode workspace
  • Perform a test merge of dev into tidepool-merge in that local clone (in branch test_merge)
  • Open Xcode workspace and build with modified OmniBLE

Confirmed that rPi DASH pod continues to operate as expected.

Code review

Confirm that the code difference between OmniBLE dev and test_merge matches this PR exactly.

Details

These are the CLI command used for local clone testing

Modify using merge

cd OmniBLE
git switch dev
git pull
git switch tidepool-merge
git pull
git switch -c test_merge
git merge dev
cd ..
xed .

Confirm the changes with respect to dev match this PR, which was created against an earlier commit on the dev branch

cd OmniBLE
git diff dev test_merge --name-status
git diff dev test_merge
cd ..

itsmojo and others added 27 commits November 16, 2024 22:48
+ Refactored for more uniform date and time display for all cases
+ New optional -v command line option to enable all print options
+ Enable new pod disconnect/reconnect message printing with -v command line option
+ Enable message address and seq #'s printing with -v command line option
+ Disable new unacknowledged message error printing with -q command line option
+ Disable date printing with timestamps with -q command line option
+ Remove unneeded & redundant didSend() & didReceive() message logging
+ Improved and additional PodState debugDescription display for insulin values
+ Improved pod suspend testing when updating delivery status
+ Update suspended, bolusing, tempBasalRunning, extendedBolusRunning definitions
  for better efficency and clarity using @dnzxy suggestion on OmniBLE PR #123
+ Use supportedTempBasalRates var for better OmniKit consistency
+ Don't append an optional beep block to a getStatus with a pending unacknowledged command
+ Handle unacknowledged commands cases in acknowledgeAlerts(), beepConfig() & configureAlert()
+ Use checkCommandAgainstStatus() for seq # mismatch to determine insulin delivery status
+ Remove unneeded @discardResult attribute on various PodCommsSessions functions
+ Comment improvements and better source code synchronization between OmniKit and OmniBLE
…sions

+ Add new PodCommsSessions.getStatus parameter to specify noSeqGetStatus
+ Use new getStatus for post-connect, resuming setup and standalone getStatus
+ Update PodCommsSessions.send to handle alternative noSeqStatus msg # handling
+ Rename type 7 PodInfoRequestSubType to noSeqStatus for better clarity
Various OmniBLEParser updates and improvements
Miscellaneous Omnipod code improvements & cleanup
Unacknowledged command handling fixes and PodCommsSession improvements
…or-handling

Don't fail on ack comms error if validated response has been received
Use alternate type 7 getStatus call as per DASH PDM
New resolveUnacknowledgedCommand() attempts a GetStatusCommand to resolve any
unacknowledged command or throws .unacknowledgedCommandPending on failure.
Have all PodCommSession funcs call resolveUnacknowledgedCommand() instead
of failing if called with a pending unacknowledged command.
… code

Fix deactivatePod() logic error to correctly handle an unacknowledged command
Simplify logging by not including the calling function's name
…recovery

Improved unacknowledged command recovery
+ Fixes Trio issue #455, see for more details
+ Tweaks to runTemporaryBasalProgram() to avoid using stale podState
+ Change enactBolus() to use same updated pod suspended testing logic
Logic fix for 049 pod fault with concurrent temp basal commands
add self.tryToValidateComms to handle uncertain comms;
ensure podSuspended is only return when actually suspended
Fix for pump manager returns bogus podSuspended
@ps2 ps2 self-requested a review May 7, 2025 15:15
Copy link

@ps2 ps2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@marionbarker marionbarker merged commit d7f05cd into tidepool-merge May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants