nightscout / Trio

Trio - an automated insulin delivery system for iOS based on the OpenAPS algorithm with adaptations.
https://docs.diy-trio.org/en/latest/
MIT License
81 stars 423 forks source link

[all branches] - ResistanceLowersTarget does not work #152

Closed mountrcg closed 4 months ago

mountrcg commented 5 months ago

Describe the bug due to this line the oref functionality resistance_lowers_target does not work as it is always false

To Reproduce Steps to reproduce the behavior:

  1. activate that setting in preferences
  2. watch for an autosens >1
  3. see if target in popup will be lower when from from profile
  4. See that is the same, which would be an error and target is not adjusted due to the setting in oref

Expected behavior target need to be lower than profile target

Solution case resistanceLowersTarget = "resistance_lowers_target" in preferences.swift (see above)

MikePlante1 commented 5 months ago

Thanks for reporting this and pointing to the solution. Fix proposed in #155 .