mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 08:38:36 -04:00
GPS: disable auto detection of NMEA and SiRF on a 1280 board
saves a bit more flash space
This commit is contained in:
parent
68f1b6336f
commit
728b3a133e
@ -95,6 +95,8 @@ AP_GPS_Auto::_detect(void)
|
||||
Serial.print_P(PSTR(" MTK "));
|
||||
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)) {
|
||||
Serial.print_P(PSTR(" SIRF "));
|
||||
return new AP_GPS_SIRF(_port);
|
||||
@ -107,6 +109,7 @@ AP_GPS_Auto::_detect(void)
|
||||
return new AP_GPS_NMEA(_port);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user