From 62ff9fb1de00943d8a6cc450cc4d5af27e83c6ca Mon Sep 17 00:00:00 2001 From: skarg Date: Fri, 27 Sep 2013 22:15:40 +0000 Subject: [PATCH] Added error message to read-property demo print. --- bacnet-stack/demo/readprop/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bacnet-stack/demo/readprop/main.c b/bacnet-stack/demo/readprop/main.c index 214d78cd..ab3ad24d 100644 --- a/bacnet-stack/demo/readprop/main.c +++ b/bacnet-stack/demo/readprop/main.c @@ -134,7 +134,9 @@ void My_Read_Property_Ack_Handler( (service_data->invoke_id == Request_Invoke_ID)) { len = rp_ack_decode_service_request(service_request, service_len, &data); - if (len > 0) { + if (len < 0) { + printf("\r\n"); + } else { rp_ack_print_data(&data); } }