Skip to content

Support Needed for G7 Extended Wear Sensors #45

@marionbarker

Description

@marionbarker

Issue Description

Early reports are that the G7 extended wear sensors work with OS-AID apps but run into a problem when they hit the 10-day + 12-hour grace time that is hard coded into the G7SensorKit code.

Plan Forward

An update to the code is required but for people who are currently wearing these sensors, they run into this issue at 10.5 days wear time.

Image

Emergency fix

Browser builders

View this link for instructions on customizations:

Insert this customization into build_loop.yml or build_trio.yml. Be sure to remove these lines later once the code is updated or it you return to 10.5 day wear sensors.

          # G7SensorKit Patch:
          # Emergency fix for users of 15-day G7 extended wear sensor:
          curl https://github.com/loopandlearn/G7SensorKit/commit/ac920ed738e2af2042a53f6fcb0ae9762e2cbab8.patch | git apply --directory=G7SensorKit -v --whitespace=fix

In this example link, you can see the build_loop.yml modification in place:

Mac-Xcode builders

If you change these 2 lines (65 and 66) of code in G7SensorKit/G7CGMManager/G7Sensor.swift you can extend the use of the sensors to 15.5 days

from

    public static let lifetime = TimeInterval(hours: 10 * 24)
    public static let warmupDuration = TimeInterval(minutes: 25)

to

    public static let lifetime = TimeInterval(hours: 15 * 24)
    public static let warmupDuration = TimeInterval(minutes: 60)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions