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:
Julien Lecoeur
2017-07-13 14:47:02 +02:00
committed by Beat Küng
parent bc006b81fc
commit 71136dcedf
+1 -1
View File
@@ -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);