Abort reading all pump data if history read fails.
(cherry picked from commit 9f679bc)
This commit is contained in:
parent
9ce57e7076
commit
b46165e52a
|
@ -1025,11 +1025,14 @@ public class ComboPlugin implements PluginBase, PumpInterface, ConstraintsInterf
|
|||
}
|
||||
|
||||
void readAllPumpData() {
|
||||
readHistory(new PumpHistoryRequest()
|
||||
boolean readHistorySuccess = readHistory(new PumpHistoryRequest()
|
||||
.bolusHistory(pump.lastHistoryBolusTime)
|
||||
.tbrHistory(pump.lastHistoryTbrTime)
|
||||
.pumpErrorHistory(PumpHistoryRequest.FULL)
|
||||
.tddHistory(PumpHistoryRequest.FULL));
|
||||
if (!readHistorySuccess) {
|
||||
return;
|
||||
}
|
||||
|
||||
CommandResult reservoirResult = runCommand("Checking reservoir level", 2,
|
||||
ruffyScripter::readReservoirLevelAndLastBolus);
|
||||
|
|
Loading…
Reference in a new issue