mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 14:31:35 +08:00
log_writer_file: increase stack size by 20 bytes
Seems to be due to the console buffer.
This commit is contained in:
@@ -161,7 +161,7 @@ int LogWriterFile::thread_start()
|
|||||||
param.sched_priority = SCHED_PRIORITY_DEFAULT - 40;
|
param.sched_priority = SCHED_PRIORITY_DEFAULT - 40;
|
||||||
(void)pthread_attr_setschedparam(&thr_attr, ¶m);
|
(void)pthread_attr_setschedparam(&thr_attr, ¶m);
|
||||||
|
|
||||||
pthread_attr_setstacksize(&thr_attr, PX4_STACK_ADJUSTED(1150));
|
pthread_attr_setstacksize(&thr_attr, PX4_STACK_ADJUSTED(1170));
|
||||||
|
|
||||||
int ret = pthread_create(&_thread, &thr_attr, &LogWriterFile::run_helper, this);
|
int ret = pthread_create(&_thread, &thr_attr, &LogWriterFile::run_helper, this);
|
||||||
pthread_attr_destroy(&thr_attr);
|
pthread_attr_destroy(&thr_attr);
|
||||||
|
|||||||
Reference in New Issue
Block a user