Fix: Allow sending of ChannelChangeCommand even if EnableCommands is 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
This commit is contained in:
Thomas Basler 2023-07-09 11:57:47 +02:00
parent 9b0d2ff25f
commit 0ffbba0cf5
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ HMS_Abstract::HMS_Abstract(HoymilesRadio* radio, uint64_t serial)
bool HMS_Abstract::sendChangeChannelRequest() bool HMS_Abstract::sendChangeChannelRequest()
{ {
if (!(getEnableCommands() && getEnablePolling())) { if (!(getEnableCommands() || getEnablePolling())) {
return false; return false;
} }

View File

@ -16,7 +16,7 @@ HMT_Abstract::HMT_Abstract(HoymilesRadio* radio, uint64_t serial)
bool HMT_Abstract::sendChangeChannelRequest() bool HMT_Abstract::sendChangeChannelRequest()
{ {
if (!(getEnableCommands() && getEnablePolling())) { if (!(getEnableCommands() || getEnablePolling())) {
return false; return false;
} }