nightscout / AndroidAPS

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

No carbs in AAPS if phone restart during bolus started via wizard #1377

Closed robertrub closed 2 years ago

robertrub commented 2 years ago

I entered carbs in wizard and started bolus injection. During the bolus, I had to restart the phone. Once restarted, I actualized pod status to validate the sent bolus.

I can see the bolus but there is no trace of the carbs in AAPS.

Screenshot_20220225-122218_AndroidAPS.jpg

Screenshot_20220225-122228_AndroidAPS.jpg

Screenshot_20220225-122253_AndroidAPS.jpg

I don't know if the logs are reset after reboot...

AndroidAPS_LOG_1645788190507.log.zip

MilosKozak commented 2 years ago

carbs are recorded only if bolus is delivered successfuly. it's for safety because people entered carbs for 2nd time when repeated bolus

robertrub commented 2 years ago

@MilosKozak When the phone booted, the bolus was "unsure" in the DASH tab. When I actualized it, the fact that the bolus was injected totally was known to AAPS. I don't know if it will be doable to find a logic that adds carbs if they are missing or to show a message "check carbs and bolus" after boot if AAPS stopped before the bolus complete (the DASH tab new that it hadn't received the "bolus injected ok" message).

MilosKozak commented 2 years ago

carbs info is store donly in memory until bolus is finished