Closed prxvm closed 3 years ago
In PD mode, in multi-drop channels, when a PD receives a command addressed to another PD, it should not process the command: ie, should skip it and hence returns OSDP_ERR_PKT_SKIP
.
On the other hand, a CP receiving a response from another PD when the channel is locked to it is treated as an error. This can happen only if a faulty PD is responding when it shouldn't.
Thank you for the clarification!
Return value of
osdp_phy_check_packet
in case a PD receives command poll command that is not intended it for i.e. meant for a different PD, shouldn't the following code block check forISSET_FLAG(pd, PD_FLAG_PD_MODE)
instead of!ISSET_FLAG(pd, PD_FLAG_PD_MODE)
?