mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-02 05:58:30 -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 "));
|
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…
Reference in New Issue
Block a user