diff --git a/libraries/AP_RangeFinder/RangeFinder.cpp b/libraries/AP_RangeFinder/RangeFinder.cpp index a64cddf195..5b936f1900 100644 --- a/libraries/AP_RangeFinder/RangeFinder.cpp +++ b/libraries/AP_RangeFinder/RangeFinder.cpp @@ -338,8 +338,9 @@ void RangeFinder::update(void) drivers[i]->update(); } } - +#ifndef HAL_BUILD_AP_PERIPH Log_RFND(); +#endif } bool RangeFinder::_add_backend(AP_RangeFinder_Backend *backend)