5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-03-10 08:34:17 -03:00

Getting rid of Simple Logging

This commit is contained in:
Jason Short 2011-12-23 18:44:30 -08:00
parent 0f91fbcee5
commit d7af42c925

View File

@ -672,23 +672,22 @@
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
// Dataflash logging control // Dataflash logging control
// //
// Logging must be disabled for 1280 build.
#if defined( __AVR_ATmega1280__ ) #if defined( __AVR_ATmega1280__ )
# ifndef CONFIG_LOGGING # if LOGGING_ENABLED == ENABLED
# define CONFIG_LOGGING LOGGING_SIMPLE // If logging was enabled in APM_Config or command line, warn the user.
# elif CONFIG_LOGGING != LOGGING_SIMPLE # warning "Logging is not supported on ATmega1280"
# warning "Simple Logging is the only officially supported mode on mega 1280" # undef LOGGING_ENABLED
# endif # endif
#endif # ifndef LOGGING_ENABLED
# define LOGGING_ENABLED DISABLED
#ifndef CONFIG_LOGGING # endif
# define CONFIG_LOGGING LOGGING_VERBOSE #elif !defined(LOGGING_ENABLED)
#endif // Logging is enabled by default for all other builds.
#ifndef LOGGING_ENABLED
# define LOGGING_ENABLED ENABLED # define LOGGING_ENABLED ENABLED
#endif #endif
#ifndef LOG_ATTITUDE_FAST #ifndef LOG_ATTITUDE_FAST
# define LOG_ATTITUDE_FAST DISABLED # define LOG_ATTITUDE_FAST DISABLED
#endif #endif