AP_RangeFinder: tidy defines around bebop rangefinder inclusion

This commit is contained in:
Peter Barker 2024-12-20 16:42:00 +11:00
parent cb6907992b
commit e22eb07cd8

View File

@ -24,9 +24,7 @@
#include "AP_RangeFinder_BBB_PRU.h" #include "AP_RangeFinder_BBB_PRU.h"
#include "AP_RangeFinder_LightWareI2C.h" #include "AP_RangeFinder_LightWareI2C.h"
#include "AP_RangeFinder_LightWareSerial.h" #include "AP_RangeFinder_LightWareSerial.h"
#if (CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BEBOP || \ #if AP_RANGEFINDER_BEBOP_ENABLED
CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_DISCO) && \
defined(HAVE_LIBIIO)
#include "AP_RangeFinder_Bebop.h" #include "AP_RangeFinder_Bebop.h"
#endif #endif
#include "AP_RangeFinder_Backend.h" #include "AP_RangeFinder_Backend.h"