diff --git a/lib/Hoymiles/src/inverters/HM_Abstract.cpp b/lib/Hoymiles/src/inverters/HM_Abstract.cpp index 097fffeb4..47acfbbaf 100644 --- a/lib/Hoymiles/src/inverters/HM_Abstract.cpp +++ b/lib/Hoymiles/src/inverters/HM_Abstract.cpp @@ -121,6 +121,10 @@ bool HM_Abstract::sendActivePowerControlRequest(float limit, PowerLimitControlTy return false; } + if (CMD_PENDING == SystemConfigPara()->getLastLimitCommandSuccess()) { + return false; + } + if (type == PowerLimitControlType::RelativNonPersistent || type == PowerLimitControlType::RelativPersistent) { limit = min(100, limit); } @@ -147,6 +151,10 @@ bool HM_Abstract::sendPowerControlRequest(bool turnOn) return false; } + if (CMD_PENDING == PowerCommand()->getLastPowerCommandSuccess()) { + return false; + } + if (turnOn) { _powerState = 1; } else {