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