mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-11 17:13:56 -03:00
AP_HAL_SITL: SITL SerialDevice optionally checks baudrates match
This commit is contained in:
parent
365d2ef3ff
commit
0d5d9c04f0
@ -157,6 +157,10 @@ void UARTDriver::begin(uint32_t baud, uint16_t rxSpace, uint16_t txSpace)
|
||||
free(s);
|
||||
}
|
||||
|
||||
if (_sim_serial_device != nullptr) {
|
||||
_sim_serial_device->set_autopilot_baud(baud);
|
||||
}
|
||||
|
||||
if (hal.console != this) { // don't clear USB buffers (allows early startup messages to escape)
|
||||
_readbuffer.clear();
|
||||
_writebuffer.clear();
|
||||
|
Loading…
Reference in New Issue
Block a user