refresh data greater smaller fix

This commit is contained in:
AdrianLxM 2017-07-27 23:35:44 +02:00
parent 9572c8d9fc
commit f680d70548

View file

@ -325,7 +325,7 @@ public class ComboPlugin implements PluginBase, PumpInterface {
if (!reason.toLowerCase().contains("user")
&& lastCmdTime.getTime() > 0
&& System.currentTimeMillis() > lastCmdTime.getTime() + 60 * 1000) {
&& System.currentTimeMillis() < lastCmdTime.getTime() + 60 * 1000) {
log.debug("Not fetching state from pump, since we did already within the last 60 seconds");
} else {
runCommand(new ReadPumpStateCommand());