From 8973dfa8e0e644f1a66d4a89c5f065ad4ef0ecf6 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 23 Nov 2021 16:53:24 +1100 Subject: [PATCH] AP_RangeFinder: use HAL_LOGGING_ENABLED in place of HAL_BUILD_AP_PERIPH --- libraries/AP_RangeFinder/AP_RangeFinder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }