Fixed sched param setup in MAVLink app

This commit is contained in:
Lorenz Meier 2013-09-05 13:24:37 +02:00
parent aa785b0d2b
commit 5dbe53877a

View File

@ -747,6 +747,7 @@ receive_start(int uart)
fcntl(uart, F_SETFL, flags | O_NONBLOCK);
struct sched_param param;
(void)pthread_attr_getschedparam(&receiveloop_attr, &param);
param.sched_priority = SCHED_PRIORITY_MAX - 40;
(void)pthread_attr_setschedparam(&receiveloop_attr, &param);