Minor Omnipod improvement

This commit is contained in:
Bart Sopers 2020-09-02 22:49:26 +02:00
parent 4e32761d48
commit 591a939616

View file

@ -301,7 +301,7 @@ public class OmnipodPumpPlugin extends PumpPluginBase implements PumpInterface,
// As per the characteristics of the Omnipod, we only know whether or not a TBR is currently active
// 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 (!podStateManager.isTempBasalRunning()) {
if (activePlugin.getActiveTreatments().isTempBasalInProgress() && !aapsOmnipodManager.hasSuspendedFakeTbr()) {
aapsOmnipodManager.reportCancelledTbr();
}