Browse Source

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).
sbg
Julien Lecoeur 8 years ago committed by Beat Küng
parent
commit
71136dcedf
  1. 2
      src/modules/logger/log_writer_file.cpp

2
src/modules/logger/log_writer_file.cpp

@ -174,7 +174,7 @@ int LogWriterFile::thread_start() @@ -174,7 +174,7 @@ int LogWriterFile::thread_start()
param.sched_priority = SCHED_PRIORITY_DEFAULT - 40;
(void)pthread_attr_setschedparam(&thr_attr, &param);
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);

Loading…
Cancel
Save