More fixes.

This commit is contained in:
James Goppert 2013-01-13 19:08:27 -05:00
parent e3d0e0216b
commit 69f6fe51bc

View File

@ -571,7 +571,7 @@ receive_thread(void *arg)
int uart_fd = *((int *)arg);
const int timeout = 1000;
uint8_t buf[512];
uint8_t buf[32];
mavlink_message_t msg;
@ -617,7 +617,7 @@ receive_start(int uart)
param.sched_priority = SCHED_PRIORITY_MAX - 40;
(void)pthread_attr_setschedparam(&receiveloop_attr, &param);
pthread_attr_setstacksize(&receiveloop_attr, 3072);
pthread_attr_setstacksize(&receiveloop_attr, 2048);
pthread_t thread;
pthread_create(&thread, &receiveloop_attr, receive_thread, &uart);