Browse Source

Fixed sched param setup in MAVLink app

sbg
Lorenz Meier 12 years ago
parent
commit
5dbe53877a
  1. 1
      src/modules/mavlink/mavlink_receiver.cpp

1
src/modules/mavlink/mavlink_receiver.cpp

@ -747,6 +747,7 @@ receive_start(int uart) @@ -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);

Loading…
Cancel
Save