nightscout / AndroidAPS

Opensource automated insulin delivery system (closed loop)
https://wiki.aaps.app
GNU Affero General Public License v3.0
696 stars 1.7k forks source link

EROS: Pod is not discarded properly #1882

Closed vanelsberg closed 2 years ago

vanelsberg commented 2 years ago

AAPS version 3.0.0.1 release and higher Driver: Omnipod EROS

Problem description: The Omnipod EROS driver has a bug that can lead to a situation where users get stuck with a pod registration that can not be continued or discarded. Several users reported running into this problem as a result of Pod activation failure.

Problem was introduced by Eros: try to resolve fake TBR alert. As a result of this "fix" pod state can no longer be discarded through code. Pod may also not be assigned a new random Pod address on activation.

As a direct result user is unable to Discard Pod on failures during activation where the Pod can not be succesfully activated. See also: https://github.com/nightscout/AndroidAPS/issues/1853

Solution: Revise code logic for discarding a Pod.

vanelsberg commented 2 years ago

Solving related: https://github.com/nightscout/AndroidAPS/issues/1853

Possibly related: https://github.com/nightscout/AndroidAPS/issues/1627 https://github.com/nightscout/AndroidAPS/issues/1129

vanelsberg commented 2 years ago

@MilosKozak Working on a PR, currently under test