Skip to content

Commit

Permalink
exit loop after turn inverter on or off
Browse files Browse the repository at this point in the history
  • Loading branch information
helgeerbe committed Mar 8, 2023
1 parent 716fc86 commit 6f3e33c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/PowerLimiter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ void PowerLimiterClass::loop()
inverter->sendActivePowerControlRequest(Hoymiles.getRadio(), newPowerLimit, PowerLimitControlType::AbsolutNonPersistent);
_lastRequestedPowerLimit = newPowerLimit;
_lastCommandSent = millis();
return;
}

// do nothing if battery is empty
Expand All @@ -144,6 +145,7 @@ void PowerLimiterClass::loop()
MessageOutput.println("[PowerLimiterClass::loop] Starting up inverter...");
inverter->sendPowerControlRequest(Hoymiles.getRadio(), true);
_lastCommandSent = millis();
return;
}
else
return;
Expand Down

0 comments on commit 6f3e33c

Please sign in to comment.