mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-06 06:43:21 +08:00
Log_writer_file: Increase stack size
Test flights reported the warning `[load_mon] log_writer_file low on stack! (292 bytes left)` Increase stack size from 1060 to 1072 (=8 + 1060 rounded to next multiple of 8).
This commit is contained in:
committed by
Beat Küng
parent
bc006b81fc
commit
71136dcedf
@@ -174,7 +174,7 @@ int LogWriterFile::thread_start()
|
||||
param.sched_priority = SCHED_PRIORITY_DEFAULT - 40;
|
||||
(void)pthread_attr_setschedparam(&thr_attr, ¶m);
|
||||
|
||||
pthread_attr_setstacksize(&thr_attr, PX4_STACK_ADJUSTED(1060));
|
||||
pthread_attr_setstacksize(&thr_attr, PX4_STACK_ADJUSTED(1072));
|
||||
|
||||
int ret = pthread_create(&_thread, &thr_attr, &LogWriterFile::run_helper, this);
|
||||
pthread_attr_destroy(&thr_attr);
|
||||
|
||||
Reference in New Issue
Block a user