Skip to content

Commit

Permalink
Fix: Allow sending of ChannelChangeCommand even if EnableCommands is …
Browse files Browse the repository at this point in the history
…disabled

This is required to successfull move the inverter to another frequency and then polling it. Without this command its not even possible to poll a inverter.

Fixes #1127
  • Loading branch information
tbnobody committed Jul 10, 2023
1 parent 9b0d2ff commit 0ffbba0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Hoymiles/src/inverters/HMS_Abstract.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ HMS_Abstract::HMS_Abstract(HoymilesRadio* radio, uint64_t serial)

bool HMS_Abstract::sendChangeChannelRequest()
{
if (!(getEnableCommands() && getEnablePolling())) {
if (!(getEnableCommands() || getEnablePolling())) {
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Hoymiles/src/inverters/HMT_Abstract.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ HMT_Abstract::HMT_Abstract(HoymilesRadio* radio, uint64_t serial)

bool HMT_Abstract::sendChangeChannelRequest()
{
if (!(getEnableCommands() && getEnablePolling())) {
if (!(getEnableCommands() || getEnablePolling())) {
return false;
}

Expand Down

0 comments on commit 0ffbba0

Please sign in to comment.