Skip to content

Commit a2f732c

Browse files
committed
Fixed: Sending commands from remote domoticz instance
1 parent 4750caf commit a2f732c

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

main/mainworker.cpp

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1651,8 +1651,18 @@ unsigned long long MainWorker::PerformRealActionFromDomoticzClient(const unsigne
16511651
}
16521652

16531653
void MainWorker::DecodeRXMessage(const CDomoticzHardwareBase *pHardware, const unsigned char *pRXCommand) {
1654-
// Submit command without waiting for the command to be processed
1655-
PushRxMessage(pHardware, pRXCommand);
1654+
if ((pHardware == NULL) || (pRXCommand == NULL))
1655+
return;
1656+
if ((pHardware->HwdType == HTYPE_Domoticz) && (pHardware->m_HwdID == 8765))
1657+
{
1658+
//Directly process the command
1659+
ProcessRXMessage(pHardware, pRXCommand);
1660+
}
1661+
else
1662+
{
1663+
// Submit command without waiting for the command to be processed
1664+
PushRxMessage(pHardware, pRXCommand);
1665+
}
16561666
}
16571667

16581668
void MainWorker::PushRxMessage(const CDomoticzHardwareBase *pHardware, const unsigned char *pRXCommand) {

0 commit comments

Comments
 (0)