AP_GPS: start detection timer on first bytes
this prevents a uBlox plugged in late from being detected as a NMEA GPS
This commit is contained in:
parent
6f9fa7d3b3
commit
72e97c6dfc
@ -79,7 +79,7 @@ AP_GPS_Auto::_detect(void)
|
||||
{
|
||||
static uint32_t detect_started_ms;
|
||||
|
||||
if (detect_started_ms == 0) {
|
||||
if (detect_started_ms == 0 && _port->available() > 0) {
|
||||
detect_started_ms = millis();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user