AndroidAPS/pump/combov2/comboctl/src
Carlos Rafael Giani ad381e3c26 comboctl: main: Improvements to Pump.setTbr()
* Don't set a fake 100% TBR again if the current fake 100% TBR
  is finished within 15 minutes (reduces number of TBR operations
  and allows the Combo to return to a non-TBR state).
* If the expected TBR percentage was a non-100% one, but not we see
  a non-TBR main screen, check if the expected TBR duration was <= 2
  minutes. This covers the edge case when the TBR ends at the same
  time when we run this check.
* Inform callers about the exact outcome of the setTbr() call. It could
  be that it set the TBR normally. Or, it might have set a fake 100% TBR
  (if the user requested a 100% TBR and force100Percent was set to false),
  and so on.

Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
2022-12-07 12:38:59 +01:00
..
androidMain resolve deprecation warnings 2022-11-27 22:42:33 +01:00
commonMain/kotlin/info/nightscout/comboctl comboctl: main: Improvements to Pump.setTbr() 2022-12-07 12:38:59 +01:00
jvmTest/kotlin/info/nightscout/comboctl comboctl-main: Check for unchanging screen type in navigateToRTScreen() 2022-11-20 21:58:50 +01:00