mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 07:53:34 +08:00
Fixed sched param setup in MAVLink app
This commit is contained in:
@@ -747,6 +747,7 @@ receive_start(int uart)
|
|||||||
fcntl(uart, F_SETFL, flags | O_NONBLOCK);
|
fcntl(uart, F_SETFL, flags | O_NONBLOCK);
|
||||||
|
|
||||||
struct sched_param param;
|
struct sched_param param;
|
||||||
|
(void)pthread_attr_getschedparam(&receiveloop_attr, ¶m);
|
||||||
param.sched_priority = SCHED_PRIORITY_MAX - 40;
|
param.sched_priority = SCHED_PRIORITY_MAX - 40;
|
||||||
(void)pthread_attr_setschedparam(&receiveloop_attr, ¶m);
|
(void)pthread_attr_setschedparam(&receiveloop_attr, ¶m);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user