mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
parent
785ad0614a
commit
69e233a39d
@ -56,6 +56,7 @@ AP_GPS_SBF::read(void)
|
||||
uint32_t now = AP_HAL::millis();
|
||||
|
||||
if (_init_blob_index < (sizeof(_initialisation_blob) / sizeof(_initialisation_blob[0]))) {
|
||||
const char *init_str = _initialisation_blob[_init_blob_index];
|
||||
if (validcommand) {
|
||||
_init_blob_index++;
|
||||
validcommand = false;
|
||||
@ -63,7 +64,7 @@ AP_GPS_SBF::read(void)
|
||||
}
|
||||
|
||||
if (now > _init_blob_time) {
|
||||
port->write((const uint8_t*)_initialisation_blob[_init_blob_index], strlen(_initialisation_blob[_init_blob_index]));
|
||||
port->write((const uint8_t*)init_str, strlen(init_str));
|
||||
_init_blob_time = now + 1000;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user