mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-21 10:07: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);
|
||||
|
||||
struct sched_param param;
|
||||
(void)pthread_attr_getschedparam(&receiveloop_attr, ¶m);
|
||||
param.sched_priority = SCHED_PRIORITY_MAX - 40;
|
||||
(void)pthread_attr_setschedparam(&receiveloop_attr, ¶m);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user