From 889b18022b13faeb11db0b9d510210a07d804c99 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 23 Sep 2019 08:52:01 +1000 Subject: [PATCH] AP_Logger: use HAL_MEM_CLASS for logging buffer size --- libraries/AP_Logger/AP_Logger.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Logger/AP_Logger.cpp b/libraries/AP_Logger/AP_Logger.cpp index 3feec6f4f3..12cb0d2524 100644 --- a/libraries/AP_Logger/AP_Logger.cpp +++ b/libraries/AP_Logger/AP_Logger.cpp @@ -15,8 +15,12 @@ AP_Logger *AP_Logger::_singleton; extern const AP_HAL::HAL& hal; #ifndef HAL_LOGGING_FILE_BUFSIZE +#if HAL_MEM_CLASS >= HAL_MEM_CLASS_300 +#define HAL_LOGGING_FILE_BUFSIZE 50 +#else #define HAL_LOGGING_FILE_BUFSIZE 16 -#endif +#endif +#endif #ifndef HAL_LOGGING_MAV_BUFSIZE #define HAL_LOGGING_MAV_BUFSIZE 8