Don't automatically cancel a fake suspended TBR from pod state changes
This commit is contained in:
parent
d994f2a184
commit
363b9242b9
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue