Browse Source

GPS: disable auto detection of NMEA and SiRF on a 1280 board

saves a bit more flash space
master
Andrew Tridgell 13 years ago
parent
commit
728b3a133e
  1. 3
      libraries/AP_GPS/AP_GPS_Auto.cpp

3
libraries/AP_GPS/AP_GPS_Auto.cpp

@ -95,6 +95,8 @@ AP_GPS_Auto::_detect(void)
Serial.print_P(PSTR(" MTK ")); Serial.print_P(PSTR(" MTK "));
return new AP_GPS_MTK(_port); return new AP_GPS_MTK(_port);
} }
#if !defined( __AVR_ATmega1280__ )
// save a bit of code space on a 1280
if (AP_GPS_SIRF::_detect(data)) { if (AP_GPS_SIRF::_detect(data)) {
Serial.print_P(PSTR(" SIRF ")); Serial.print_P(PSTR(" SIRF "));
return new AP_GPS_SIRF(_port); return new AP_GPS_SIRF(_port);
@ -107,6 +109,7 @@ AP_GPS_Auto::_detect(void)
return new AP_GPS_NMEA(_port); return new AP_GPS_NMEA(_port);
} }
} }
#endif
} }
return NULL; return NULL;

Loading…
Cancel
Save