diff --git a/libraries/AP_Logger/AP_Logger.cpp b/libraries/AP_Logger/AP_Logger.cpp index c0c360030c..0b2a0ced1a 100644 --- a/libraries/AP_Logger/AP_Logger.cpp +++ b/libraries/AP_Logger/AP_Logger.cpp @@ -1,5 +1,7 @@ #include "AP_Logger.h" +#if HAL_LOGGING_ENABLED + #include "AP_Logger_Backend.h" #include "AP_Logger_File.h" @@ -1628,3 +1630,5 @@ AP_Logger &logger() } }; + +#endif // HAL_LOGGING_ENABLED