Don't automatically cancel a fake suspended TBR from pod state changes

This commit is contained in:
Bart Sopers 2020-09-02 02:09:03 +02:00
parent d994f2a184
commit 363b9242b9

View file

@ -302,7 +302,7 @@ public class OmnipodPumpPlugin extends PumpPluginBase implements PumpInterface,
// But it doesn't tell us the duration or amount, so we can only update TBR status in AAPS if
// The pod is not running a TBR, while AAPS thinks it is
if (!podStateManager.hasTempBasal()) {
if (activePlugin.getActiveTreatments().isTempBasalInProgress()) {
if (activePlugin.getActiveTreatments().isTempBasalInProgress() && !aapsOmnipodManager.hasSuspendedFakeTbr()) {
aapsOmnipodManager.reportCancelledTbr();
}
}