Skip to content

Commit

Permalink
Fix sending CONTROL instead of POWER_GRADE command
Browse files Browse the repository at this point in the history
  • Loading branch information
enwi committed Aug 3, 2022
1 parent 9a09396 commit e827a51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NETSGPClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ NETSGPClient::InverterStatus NETSGPClient::getStatus(const uint32_t deviceID)

bool NETSGPClient::setPowerGrade(const uint32_t deviceID, const PowerGrade pg)
{
return sendCommandAndValidate(deviceID, Command::CONTROL, pg);
return sendCommandAndValidate(deviceID, Command::POWER_GRADE, pg);
}

bool NETSGPClient::activate(const uint32_t deviceID, const bool activate)
Expand Down

0 comments on commit e827a51

Please sign in to comment.