From e22eb07cd88ffaba96b0e16370d9e918135b9855 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 20 Dec 2024 16:42:00 +1100 Subject: [PATCH] AP_RangeFinder: tidy defines around bebop rangefinder inclusion --- libraries/AP_RangeFinder/AP_RangeFinder.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libraries/AP_RangeFinder/AP_RangeFinder.cpp b/libraries/AP_RangeFinder/AP_RangeFinder.cpp index 2134162eab..82e23c11e3 100644 --- a/libraries/AP_RangeFinder/AP_RangeFinder.cpp +++ b/libraries/AP_RangeFinder/AP_RangeFinder.cpp @@ -24,9 +24,7 @@ #include "AP_RangeFinder_BBB_PRU.h" #include "AP_RangeFinder_LightWareI2C.h" #include "AP_RangeFinder_LightWareSerial.h" -#if (CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BEBOP || \ - CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_DISCO) && \ - defined(HAVE_LIBIIO) +#if AP_RANGEFINDER_BEBOP_ENABLED #include "AP_RangeFinder_Bebop.h" #endif #include "AP_RangeFinder_Backend.h"