5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-01-09 09:28:31 -04:00

AP_Logger: use HAL_MEM_CLASS for logging buffer size

This commit is contained in:
Andrew Tridgell 2019-09-23 08:52:01 +10:00
parent 3bf3ebb703
commit 889b18022b

View File

@ -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
#ifndef HAL_LOGGING_MAV_BUFSIZE
#define HAL_LOGGING_MAV_BUFSIZE 8