Skip to content
Snippets Groups Projects
Commit a53fd76b authored by Volker Richert's avatar Volker Richert
Browse files

recentBolusWizard seems not to be reliable. Only test if IOB is greater

parent e2f672b6
Branches
Tags
No related merge requests found
......@@ -198,8 +198,10 @@ public class PumpStatusResponseMessage extends MedtronicSendMessageResponseMessa
// Recent Bolus Wizard BGL
pumpRecord.setRecentBolusWizard(recentBolusWizard);
if (recentBolusWizard && activeInsulin > DataStore.getInstance().getLastPumpStatus().getActiveInsulin()) { // there is a BolusWizard usage & the IOB increaseed
if (/*recentBolusWizard && */activeInsulin > DataStore.getInstance().getLastPumpStatus().getActiveInsulin()) { // there is a BolusWizard usage & the IOB increaseed
pumpRecord.setBolusWizardBGL(bolusWizardBGL); // In mg/DL
} else {
pumpRecord.setBolusWizardBGL(0); // In mg/DL
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment