add data request to PowerLimit update req.

This commit is contained in:
rejoe2 2024-01-27 09:37:55 +01:00 committed by GitHub
parent 626ca86d0d
commit 19184727bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 5 deletions

View file

@ -194,9 +194,10 @@ class Inverter {
if(mNextLive)
cb(RealTimeRunData_Debug, false); // get live data
else {
if(actPowerLimit == 0xffff)
if(actPowerLimit == 0xffff) {
cb(SystemConfigPara, false); // power limit info
else if(InitDataState != devControlCmd) {
cb(RealTimeRunData_Debug, false);
} else if(InitDataState != devControlCmd) {
cb(devControlCmd, false); // custom command which was received by API
devControlCmd = InitDataState;
mGetLossInterval = 1;