From 9a2f0586238ce104fa136a07cbfad035a0e2d241 Mon Sep 17 00:00:00 2001 From: brayra Date: Fri, 27 Feb 2009 16:33:16 +0000 Subject: [PATCH] Added usleep(30) to RS485_Check_UART_Data allowing the process to give up time to the system, rather than hogging the processor. --- bacnet-stack/ports/linux/rs485.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bacnet-stack/ports/linux/rs485.c b/bacnet-stack/ports/linux/rs485.c index e1c353b1..610edf43 100644 --- a/bacnet-stack/ports/linux/rs485.c +++ b/bacnet-stack/ports/linux/rs485.c @@ -223,6 +223,7 @@ void RS485_Check_UART_Data( /* if data is ready, */ mstp_port->DataAvailable = true; } + usleep(30); } }