diff --git a/bacnet-stack/demo/router/ipmodule.c b/bacnet-stack/demo/router/ipmodule.c index 93b9a4cf..6d3dd1ed 100644 --- a/bacnet-stack/demo/router/ipmodule.c +++ b/bacnet-stack/demo/router/ipmodule.c @@ -119,7 +119,7 @@ void *dl_ip_thread( break; } } else { - status = dl_ip_recv(&ip_data, &msg_data, &address, 1000); + status = dl_ip_recv(&ip_data, &msg_data, &address, 5); if (status > 0) { memmove(&msg_data->src.len, &address.mac_len, 1); memmove(&msg_data->src.adr[0], &address.mac[0], MAX_MAC_LEN); diff --git a/bacnet-stack/demo/router/mstpmodule.c b/bacnet-stack/demo/router/mstpmodule.c index e45ff2c8..7e7fa02f 100644 --- a/bacnet-stack/demo/router/mstpmodule.c +++ b/bacnet-stack/demo/router/mstpmodule.c @@ -144,7 +144,7 @@ void *dl_mstp_thread( break; } } else { - pdu_len = dlmstp_receive(&mstp_port, NULL, NULL, 0, 1000); + pdu_len = dlmstp_receive(&mstp_port, NULL, NULL, 0, 5); if (pdu_len > 0) { msg_data = (MSG_DATA *) malloc(sizeof(MSG_DATA));