Skip to content

Commit

Permalink
Fix some cpplint linting errors in Powerlimiter files #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard Kaszt committed Feb 13, 2023
1 parent fd297d2 commit 8323c21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PowerLimiter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ void PowerLimiterClass::loop()
newPowerLimit = constrain(newPowerLimit, (uint16_t)config.PowerLimiter_LowerPowerLimit, upperPowerLimit);

Hoymiles.getMessageOutput()->printf("[PowerLimiterClass::loop] powerMeter: %d W lastRequestedPowerLimit: %d\n",
int(_powerMeter1Power + _powerMeter2Power + _powerMeter3Power), _lastRequestedPowerLimit);
static_cast<int>(_powerMeter1Power + _powerMeter2Power + _powerMeter3Power), _lastRequestedPowerLimit);
} else {
// If the power meter values are older than 30 seconds,
// set the limit to config.PowerLimiter_LowerPowerLimit for safety reasons.
Expand Down

0 comments on commit 8323c21

Please sign in to comment.