mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-07 00:18:29 -04:00
AP_GPS: Fix SBF race condition on start
Unsure what the underlying problem is, but the length of the first string in the initilisation_blob increasing resulted in a race condition, waiting longer before retrying the message resolves it, but we still need to identify the underlying problem. This patch just results in the GPS working with current configurations. Tested against AsteRx-M firmware 3.6.3
This commit is contained in:
parent
53368a2afd
commit
7d2b8b6bde
@ -65,7 +65,8 @@ AP_GPS_SBF::read(void)
|
||||
|
||||
if (now > _init_blob_time) {
|
||||
port->write((const uint8_t*)init_str, strlen(init_str));
|
||||
_init_blob_time = now + 1000;
|
||||
// if this is too low a race condition on start occurs and the GPS isn't detected
|
||||
_init_blob_time = now + 2000;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user