Fix displaying reservoir level on startup.
This commit is contained in:
parent
16bb9a66e3
commit
0a67bb73a4
|
@ -281,10 +281,9 @@ public class ComboPlugin implements PluginBase, PumpInterface {
|
||||||
CommandResult commandResult = ruffyScripter.readPumpState();
|
CommandResult commandResult = ruffyScripter.readPumpState();
|
||||||
pump.lastCmdResult = commandResult;
|
pump.lastCmdResult = commandResult;
|
||||||
pump.lastCmdTime = new Date(commandResult.completionTime);
|
pump.lastCmdTime = new Date(commandResult.completionTime);
|
||||||
MainApp.bus().post(new EventComboPumpUpdateGUI());
|
|
||||||
|
|
||||||
CommandResult reservoirQueryResult = ruffyScripter.readHistory(new PumpHistoryRequest().reservoirLevel(true));
|
CommandResult reservoirQueryResult = ruffyScripter.readHistory(new PumpHistoryRequest().reservoirLevel(true));
|
||||||
pump.history = reservoirQueryResult.history;
|
pump.history = reservoirQueryResult.history;
|
||||||
|
MainApp.bus().post(new EventComboPumpUpdateGUI());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue