mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 05:21:35 +08:00
More fixes.
This commit is contained in:
@@ -571,7 +571,7 @@ receive_thread(void *arg)
|
|||||||
int uart_fd = *((int *)arg);
|
int uart_fd = *((int *)arg);
|
||||||
|
|
||||||
const int timeout = 1000;
|
const int timeout = 1000;
|
||||||
uint8_t buf[512];
|
uint8_t buf[32];
|
||||||
|
|
||||||
mavlink_message_t msg;
|
mavlink_message_t msg;
|
||||||
|
|
||||||
@@ -617,7 +617,7 @@ receive_start(int uart)
|
|||||||
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);
|
||||||
|
|
||||||
pthread_attr_setstacksize(&receiveloop_attr, 3072);
|
pthread_attr_setstacksize(&receiveloop_attr, 2048);
|
||||||
|
|
||||||
pthread_t thread;
|
pthread_t thread;
|
||||||
pthread_create(&thread, &receiveloop_attr, receive_thread, &uart);
|
pthread_create(&thread, &receiveloop_attr, receive_thread, &uart);
|
||||||
|
|||||||
Reference in New Issue
Block a user