mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2026-03-26 02:48:35 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user