Skip to content

High carb ratios on x23 pumps are off by 10x #27

@scottleibrand

Description

@scottleibrand

Per openaps/openaps#111:

On x23 pumps with carb ratios set > 25 grams / U, openaps reads the carb ratio incorrectly as 0.26, 0.27, etc.

$ openaps use 523 read_carb_ratios
{
  "units": "grams",
  "first": 1,
  "schedule": [
    {
      "q": 0,
      "start": "00:00:00",
      "r": 100,
      "ratio": 10.0,
      "offset": 0,
      "i": 0,
      "x": 0
    },
    {
      "q": 1,
      "start": "23:30:00",
      "r": 4,
      "ratio": 0.26,
      "offset": 1410,
      "i": 47,
      "x": 1
    }
  ]
}

What other info would be useful to collect to correct the decoding here?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions