From b3946a667c1a23bf64a8ae8a2d53216831f504f6 Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Wed, 6 Jan 2021 20:02:26 +0000 Subject: [PATCH] AP_Logger: omnibusF4pro needs more stack for logging and logging needs to take precedence over ftp --- libraries/AP_Logger/AP_Logger.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Logger/AP_Logger.cpp b/libraries/AP_Logger/AP_Logger.cpp index b2c71da4d1..588ea74c99 100644 --- a/libraries/AP_Logger/AP_Logger.cpp +++ b/libraries/AP_Logger/AP_Logger.cpp @@ -28,7 +28,7 @@ extern const AP_HAL::HAL& hal; #endif #ifndef HAL_LOGGING_STACK_SIZE -#define HAL_LOGGING_STACK_SIZE 512 +#define HAL_LOGGING_STACK_SIZE 768 #endif #ifndef HAL_LOGGING_MAV_BUFSIZE @@ -1274,7 +1274,7 @@ void AP_Logger::start_io_thread(void) return; } - if (!hal.scheduler->thread_create(FUNCTOR_BIND_MEMBER(&AP_Logger::io_thread, void), "log_io", HAL_LOGGING_STACK_SIZE, AP_HAL::Scheduler::PRIORITY_IO, 0)) { + if (!hal.scheduler->thread_create(FUNCTOR_BIND_MEMBER(&AP_Logger::io_thread, void), "log_io", HAL_LOGGING_STACK_SIZE, AP_HAL::Scheduler::PRIORITY_IO, 1)) { AP_HAL::panic("Failed to start Logger IO thread"); }