mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-25 08:40:30 +08:00
logger: increase stack size for littlefs
This commit is contained in:
1 parent
833e4536b7
commit
d411e1c40d
1 file changed
+4
@@ -291,7 +291,11 @@ int LogWriterFile::thread_start()
|
||||
param.sched_priority = SCHED_PRIORITY_DEFAULT - 40;
|
||||
(void)pthread_attr_setschedparam(&thr_attr, ¶m);
|
||||
|
||||
#ifdef CONFIG_FS_LITTLEFS
|
||||
pthread_attr_setstacksize(&thr_attr, PX4_STACK_ADJUSTED(1800)); /* littlefs needs more stack */
|
||||
#else
|
||||
pthread_attr_setstacksize(&thr_attr, PX4_STACK_ADJUSTED(1170));
|
||||
#endif
|
||||
|
||||
int ret = pthread_create(&_thread, &thr_attr, &LogWriterFile::run_helper, this);
|
||||
pthread_attr_destroy(&thr_attr);
|
||||
|
||||
Reference in new issue
Block a user