diff --git a/bacnet-stack/demo/handler/s_wpm.c b/bacnet-stack/demo/handler/s_wpm.c index 715b7984..867d5a0b 100644 --- a/bacnet-stack/demo/handler/s_wpm.c +++ b/bacnet-stack/demo/handler/s_wpm.c @@ -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);