ardupilot/libraries/AP_Proximity/AP_Proximity_config.h
Peter Barker 4a29a57d8d AP_Proximity: fix fallthrough in proximity switch
in the case that cygbot was selected but not compiled in we would try to insantiate a DroneCAN backend
2023-04-06 15:10:55 +10:00

12 lines
270 B
C

#pragma once
#include <AP_HAL/AP_HAL_Boards.h>
#ifndef HAL_PROXIMITY_ENABLED
#define HAL_PROXIMITY_ENABLED (!HAL_MINIMIZE_FEATURES && BOARD_FLASH_SIZE > 1024)
#endif
#ifndef AP_PROXIMITY_CYGBOT_ENABLED
#define AP_PROXIMITY_CYGBOT_ENABLED HAL_PROXIMITY_ENABLED
#endif