AP_GPS: use correct define for DroneCAN GPS drivers

This commit is contained in:
Peter Barker 2023-09-02 13:42:50 +10:00 committed by Peter Barker
parent e7def98195
commit 668e2fa068

View File

@ -728,7 +728,7 @@ AP_GPS_Backend *AP_GPS::_detect_instance(uint8_t instance)
case GPS_TYPE_UAVCAN:
case GPS_TYPE_UAVCAN_RTK_BASE:
case GPS_TYPE_UAVCAN_RTK_ROVER:
#if HAL_ENABLE_DRONECAN_DRIVERS
#if AP_GPS_DRONECAN_ENABLED
dstate->auto_detected_baud = false; // specified, not detected
return AP_GPS_DroneCAN::probe(*this, state[instance]);
#endif
@ -2167,7 +2167,7 @@ bool AP_GPS::prepare_for_arming(void) {
bool AP_GPS::backends_healthy(char failure_msg[], uint16_t failure_msg_len) {
for (uint8_t i = 0; i < GPS_MAX_RECEIVERS; i++) {
#if HAL_ENABLE_DRONECAN_DRIVERS
#if AP_GPS_DRONECAN_ENABLED
if (_type[i] == GPS_TYPE_UAVCAN ||
_type[i] == GPS_TYPE_UAVCAN_RTK_BASE ||
_type[i] == GPS_TYPE_UAVCAN_RTK_ROVER) {