From ca1bd8be3c8dedc5f7d60ba1d0478e5aead0a526 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 19 Oct 2019 15:28:27 +1100 Subject: [PATCH] AP_RangeFinder: disable logging for AP_Periph --- libraries/AP_RangeFinder/RangeFinder.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)