Closed dnzxy closed 3 months ago
Successful tests
I did this testing using dnzxy/fix/trio-g7-statemanagement, commit 2c1b921d
, which is the same commit used for this PR.
I am wearing two G7 sensors identified as:
Thanks to @bjorkert for this method.
Once Dexcom G7 app pairs with the designated sensor, monitor Trio while Loop reports its glucose reading in the dynamic island.
Binary versions of the 2 plist files are in this zip file: CMG-plist.zip
The other thing I noted while testing this code was that once it connected to the G7 sensor, the CGMManagerState.plist updates the timestamp every time a CGM reading comes in. So it always has the most up-to-date information from the app.
@dnzxy Is it not wise to put the detached state into it own PR? Thats cleaner to search if ever needed to. At least put it in the title if we leave it in here
@dnzxy Is it not wise to put the detached state into it own PR? Thats cleaner to search if ever needed to. At least put it in the title if we leave it in here
It is also not required for testing of this PR, as it is on a branch. So it can safely be removed from here.
As per request (@Sjoerd-Bo3, @bjornoleh) removed the capture build fix and opened a distinct PR (#378) for it.
@marionbarker and @avouspierre, please re-approve the PR due to the changes.
Successful test
37f2e7ca
of dnzxy/fix/trio-g7-statemanagementRepeat the test from https://github.com/nightscout/Trio/pull/376#issuecomment-2278890551
This time, transition from Sensor 2 (DXCM3g) to Sensor 1 (DXCMJd).
Success
The CGMManagerState.plist file does not include the DXCMJd as was seen with the code from this PR.
This screenshot is dated 07:39, while dev build was on phone.
Went through a standard G7 switch from old sensor to new sensor.
Successful with no manual interventions.
Started new sensor on Dexcom G7 app, and Trio saw the new sensor on its own.
Tested successfully in vivo.
Transition to new sensor in vivo success. Id in plist file found.
Addresses #354 and handles glucose source changes so that the binary file is properly updated, solving an issue where Trio reverts back to old G7 transmitter IDs.
Additionally, this PR also holds a small fix by @bjorkert to be able to build Trio when the code base sits at a tag or a detached head.