Added check for dcc_communication_enabled in WPM example. Thank you, Daniel Blazevic!
This commit is contained in:
@@ -69,6 +69,10 @@ uint8_t Send_Write_Property_Multiple_Request_Data(
|
||||
int pdu_len = 0;
|
||||
int bytes_sent = 0;
|
||||
BACNET_NPDU_DATA npdu_data;
|
||||
|
||||
/* if we are forbidden to send, don't send! */
|
||||
if (!dcc_communication_enabled())
|
||||
return 0;
|
||||
|
||||
/* is the device bound? */
|
||||
status = address_get_by_device(device_id, &max_apdu, &dest);
|
||||
|
||||
Reference in New Issue
Block a user