Skip to content

Commit

Permalink
fix veStruct
Browse files Browse the repository at this point in the history
* PPV is int not double
* fix: initialize veStruct to 0 to avoid random data on startup
  • Loading branch information
helgeerbe committed Mar 9, 2023
1 parent 6f3e33c commit 418fea2
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 @@ -257,7 +257,7 @@ uint16_t PowerLimiterClass::getDirectSolarPower()
return 0;
}

return round(VeDirect.veFrame.PPV);
return VeDirect.veFrame.PPV;
}

float PowerLimiterClass::getLoadCorrectedVoltage(std::shared_ptr<InverterAbstract> inverter)
Expand Down

0 comments on commit 418fea2

Please sign in to comment.