From 767c4da425535a8ca99f4a8928c96c1322348626 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 28 Feb 2024 17:11:31 +1100 Subject: [PATCH] AP_HAL_SITL: fixed get_baud_rate() --- libraries/AP_HAL_SITL/UARTDriver.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_HAL_SITL/UARTDriver.h b/libraries/AP_HAL_SITL/UARTDriver.h index 70d1fa332f4b27..7d08301fc10ec7 100644 --- a/libraries/AP_HAL_SITL/UARTDriver.h +++ b/libraries/AP_HAL_SITL/UARTDriver.h @@ -65,6 +65,8 @@ class HALSITL::UARTDriver : public AP_HAL::UARTDriver { */ uint64_t receive_time_constraint_us(uint16_t nbytes) override; + uint32_t get_baud_rate() const override { return _uart_baudrate; } + private: int _fd;