From ad93f871d4f72357b6c8525265a99da8aff6a485 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 28 Feb 2024 17:11:31 +1100 Subject: [PATCH] AP_HAL_ESP32: fixed get_baud_rate() --- libraries/AP_HAL_ESP32/UARTDriver.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_HAL_ESP32/UARTDriver.h b/libraries/AP_HAL_ESP32/UARTDriver.h index 471c7da4ec..2ec490f0a0 100644 --- a/libraries/AP_HAL_ESP32/UARTDriver.h +++ b/libraries/AP_HAL_ESP32/UARTDriver.h @@ -71,6 +71,9 @@ public: A return value of zero means the HAL does not support this API */ uint64_t receive_time_constraint_us(uint16_t nbytes) override; + + uint32_t get_baud_rate() const override { return _baudrate; } + private: bool _initialized; const size_t TX_BUF_SIZE = 1024;