Added check for dcc_communication_enabled in WPM example. Thank you, Daniel Blazevic!

This commit is contained in:
skarg
2015-11-24 18:51:22 +00:00
parent ca5a9bff94
commit 9368d8eab5
+4
View File
@@ -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);