Remove accidential debug wait.

This commit is contained in:
Johannes Mockenhaupt 2017-10-19 02:45:39 +02:00
parent 64c3d452a8
commit 7797cbd69e
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -272,7 +272,6 @@ public class ComboPlugin implements PluginBase, PumpInterface {
}
boolean notAUserRequest = !reason.toLowerCase().contains("user");
if (notAUserRequest) SystemClock.sleep(2000);
boolean wasRunAtLeastOnce = pump.lastCmdTime.getTime() > 0;
boolean ranWithinTheLastMinute = System.currentTimeMillis() < pump.lastCmdTime.getTime() + 60 * 1000;
if (notAUserRequest && wasRunAtLeastOnce && ranWithinTheLastMinute) {