AP_Logger: don't compiler AP_Logger.cpp if logging not enabled

for some reason this fixes f103-GPS build, even though the code wasn't
referenced
This commit is contained in:
Andrew Tridgell 2022-06-05 19:24:33 +10:00 committed by Randy Mackay
parent 42b6479527
commit d83a56b60b
1 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,7 @@
#include "AP_Logger.h" #include "AP_Logger.h"
#if HAL_LOGGING_ENABLED
#include "AP_Logger_Backend.h" #include "AP_Logger_Backend.h"
#include "AP_Logger_File.h" #include "AP_Logger_File.h"
@ -1628,3 +1630,5 @@ AP_Logger &logger()
} }
}; };
#endif // HAL_LOGGING_ENABLED