Skip to content

Total COB overcount when Carbs in Health change #243

Description

@CrushingT1D

If carbs are entered into HealtKit and then modified a short time later, Loop will count both the first entry and revised entry in total COB. This can present a dangerous situation indicating more carbs ate than in reality.

This is incredibly easy to do with a 3rd party app like myfitnesspal that writes carbs to HealtKit. Example to reproduce is to add a breakfast item with carbs in myfitnesspal, then get distracted for 2 minutes, then add a second item with carbs. The entry in HealthKit will be updated with the full meal that happened at the same time, however Loop with consider total COB to be the first item and then the full breakfast (first and second item). The details in CarbKit show up correctly, however the total COB is incorrect per the screenshots below.

img_6725
img_6723
img_6722

The only way I have figured out how to fix this issues is to kill Loop app right away and reopen it before an artificial high temp gets out of hand.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions