AP_BattMonitor: allow compilation with HAL_LOGGING_ENABLED false

This commit is contained in:
Peter Barker 2023-07-14 10:58:05 +10:00 committed by Andrew Tridgell
parent 4f6f6a7ff6
commit cddb58e105
1 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
#include <AP_Logger/AP_Logger_config.h>
#if HAL_LOGGING_ENABLED
#include "AP_BattMonitor_Backend.h"
#include <AP_Logger/AP_Logger.h>
@ -83,3 +87,5 @@ void AP_BattMonitor_Backend::Log_Write_BCL(const uint8_t instance, const uint64_
}
#endif
}
#endif // HAL_LOGGING_ENABLED