diff --git a/libraries/AP_RangeFinder/AP_RangeFinder.cpp b/libraries/AP_RangeFinder/AP_RangeFinder.cpp index a0d6502185..fe93be6f3a 100644 --- a/libraries/AP_RangeFinder/AP_RangeFinder.cpp +++ b/libraries/AP_RangeFinder/AP_RangeFinder.cpp @@ -310,7 +310,7 @@ void RangeFinder::update(void) drivers[i]->update(); } } -#ifndef HAL_BUILD_AP_PERIPH +#if HAL_LOGGING_ENABLED Log_RFND(); #endif }