From ae460385855a823a7226e2a4f3321800555beba2 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 28 Feb 2024 17:11:31 +1100 Subject: [PATCH] AP_HAL_Linux: fixed get_baud_rate() --- libraries/AP_HAL_Linux/UARTDriver.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_HAL_Linux/UARTDriver.h b/libraries/AP_HAL_Linux/UARTDriver.h index fa271cb08a..ec47114cc6 100644 --- a/libraries/AP_HAL_Linux/UARTDriver.h +++ b/libraries/AP_HAL_Linux/UARTDriver.h @@ -56,6 +56,8 @@ public: uint32_t bw_in_bytes_per_second() const override; + uint32_t get_baud_rate() const override { return _baudrate; } + private: AP_HAL::OwnPtr _device; bool _console;