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:
parent
9b0d2ff25f
commit
0ffbba0cf5
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user