Repository navigation
update podState, add setStateWithResult to match OmniBLE, from itsmojo - #36
Conversation
|
Ran various insulin delivery changing tests (automatic bolus, manual bolus, trying to bolusing with an on-going bolus, cancelling a bolus followed immediately by another bolus, automatic temp basal, manual temp basal, suspend, resume, etc) with a live pod and everything worked as expected. I also added additional debug code that would print out the {new,old}Status.bolusState and the {new,}oldStatus.basalDeliveryState in cases where they differed due to the additional !isFinished(at: date) testing and reran all the testing. By analyzing the Xcode logs I was to detect cases where shouldNotifyStatusUpdate was set to true solely because of the additional improvements. This allowed the HUD to show a change in delivery status change without a pod command having to be run. This was confirmed checking the time of a HUD update for the end of a manual temp basal against the pod comms logs. |
Omnipod updates ported by @itsmojo: LoopKit/OmniBLE#125 & LoopKit/OmniKit#36, fix bolusState & basalDeliveryState use !isFinished() again LoopKit/OmniKit#36, update OmniKit setStateWithResult() to match OmniBLE version LoopKit/OmniBLE#126 & LoopKit/OmniKit#37, fix incorrect pod suspended message on bolus after an error Remove no longer needed APSManager updateStatus() to avoid extra get pod status commands Nightscout Glucose backfill resolved: #775 Resolves several old issues with import/upload to Nightscout and to the statistics database. Prepare for the configuration profiles and the onboarding Views coming in v4.9, for instance backup of your CoreData. f0d1d52 Make Oref0 error string in pop-up more accessible: 41d2b44 Localization of the Sharing strings, by @Mirko-tri Crowdin translations from translators: Hung Nguyen Phuteleco, @Mirko-tri, Abdulrahman Alfantokh, @vanzaam, Mykola Yroslavadudko and Typ1er.
This PR is in response to a problem found in Trio, which uses the same submodules as Loop. The code difference was prepared and tested by @itsmojo.
Loop works fine without these changes, but also should continue to work.
When modifying OmniKit in a manner similar to OmniBLE (LoopKit/OmniBLE#125), it was discovered some code found in OmniBLE did not make it into OmniKit when that code was updated to SwiftUI.
From @itsmojo:
Trio Issue: Extra messages exchanged with Omnipod