Revert: Combo: retry twice to establish connection before giving up.
Only increases number of failed connection attempts.
This commit is contained in:
parent
9c95a75ede
commit
7fa51a9248
|
@ -912,9 +912,6 @@ public class ComboPlugin implements PluginBase, PumpInterface, ConstraintsInterf
|
|||
private CommandResult runOnConnectChecks() {
|
||||
// connect, get status and check if an alarm is active
|
||||
CommandResult preCheckResult = ruffyScripter.readPumpState();
|
||||
for (int retries = 2; !preCheckResult.success && retries > 0; retries--) {
|
||||
preCheckResult = ruffyScripter.readPumpState();
|
||||
}
|
||||
if (!preCheckResult.success) {
|
||||
return preCheckResult;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue