mirror of https://github.com/ArduPilot/ardupilot
AP_GPS: don't compile support for sending rtk messages if no backend supports it
This commit is contained in:
parent
0ce765aac1
commit
20fa2b0741
|
@ -115,9 +115,9 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef AP_GPS_GPS_RTK_SENDING_ENABLED
|
#ifndef AP_GPS_GPS_RTK_SENDING_ENABLED
|
||||||
#define AP_GPS_GPS_RTK_SENDING_ENABLED HAL_GCS_ENABLED && AP_GPS_ENABLED
|
#define AP_GPS_GPS_RTK_SENDING_ENABLED HAL_GCS_ENABLED && AP_GPS_ENABLED && (AP_GPS_SBF_ENABLED || AP_GPS_ERB_ENABLED)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef AP_GPS_GPS2_RTK_SENDING_ENABLED
|
#ifndef AP_GPS_GPS2_RTK_SENDING_ENABLED
|
||||||
#define AP_GPS_GPS2_RTK_SENDING_ENABLED HAL_GCS_ENABLED && AP_GPS_ENABLED && GPS_MAX_RECEIVERS > 1
|
#define AP_GPS_GPS2_RTK_SENDING_ENABLED HAL_GCS_ENABLED && AP_GPS_ENABLED && GPS_MAX_RECEIVERS > 1 && (AP_GPS_SBF_ENABLED || AP_GPS_ERB_ENABLED)
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue