mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 18:13:35 +08:00
Hotfix for mavlink logbuffer, needs another round of validation.
This commit is contained in:
@@ -516,7 +516,7 @@ void mavlink_update_system(void)
|
||||
int mavlink_thread_main(int argc, char *argv[])
|
||||
{
|
||||
/* initialize mavlink text message buffering */
|
||||
mavlink_logbuffer_init(&lb, 5);
|
||||
mavlink_logbuffer_init(&lb, 2);
|
||||
|
||||
int ch;
|
||||
char *device_name = "/dev/ttyS1";
|
||||
@@ -738,6 +738,9 @@ int mavlink_thread_main(int argc, char *argv[])
|
||||
/* Reset the UART flags to original state */
|
||||
tcsetattr(uart, TCSANOW, &uart_config_original);
|
||||
|
||||
/* destroy log buffer */
|
||||
mavlink_logbuffer_destroy(&lb);
|
||||
|
||||
thread_running = false;
|
||||
|
||||
exit(0);
|
||||
|
||||
Reference in New Issue
Block a user