Added usleep(30) to RS485_Check_UART_Data allowing the process to give up time to the system,
rather than hogging the processor.
This commit is contained in:
@@ -223,6 +223,7 @@ void RS485_Check_UART_Data(
|
||||
/* if data is ready, */
|
||||
mstp_port->DataAvailable = true;
|
||||
}
|
||||
usleep(30);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user