Browse Source

AP_GPS: allow for SBF GPS on F3 AP_Periph

zr-v5.1
Andrew Tridgell 5 years ago
parent
commit
92bcc7667c
  1. 3
      libraries/AP_GPS/AP_GPS.cpp

3
libraries/AP_GPS/AP_GPS.cpp

@ -566,7 +566,8 @@ void AP_GPS::detect_instance(uint8_t instance) @@ -566,7 +566,8 @@ void AP_GPS::detect_instance(uint8_t instance)
// the correct baud rate, and should have the selected baud broadcast
dstate->auto_detected_baud = true;
#ifndef HAL_BUILD_AP_PERIPH
// don't build the less common GPS drivers on F1 AP_Periph
#if !defined(HAL_BUILD_AP_PERIPH) || !defined(STM32F1)
switch (_type[instance]) {
// by default the sbf/trimble gps outputs no data on its port, until configured.
case GPS_TYPE_SBF:

Loading…
Cancel
Save