From 5feece5e5c0a027e5bc7d67732f3649110ec5a0b Mon Sep 17 00:00:00 2001 From: skarg Date: Fri, 6 Mar 2009 11:11:49 +0000 Subject: [PATCH] Corrected whoisrouter demo application that receives responses with many networks where the program was always printing the first one. Thank you, Martin! --- bacnet-stack/demo/whoisrouter/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bacnet-stack/demo/whoisrouter/main.c b/bacnet-stack/demo/whoisrouter/main.c index f4aed0c1..47d59e9d 100644 --- a/bacnet-stack/demo/whoisrouter/main.c +++ b/bacnet-stack/demo/whoisrouter/main.c @@ -111,6 +111,7 @@ static void My_Router_Handler( len = decode_unsigned16(&npdu[npdu_offset], &dnet); printf("%hu", dnet); npdu_len -= len; + npdu_offset += len; if (npdu_len) { printf(", "); }