diff --git a/libraries/AP_HAL_ChibiOS/UARTDriver.cpp b/libraries/AP_HAL_ChibiOS/UARTDriver.cpp index 054cf90a2e..d33106715e 100644 --- a/libraries/AP_HAL_ChibiOS/UARTDriver.cpp +++ b/libraries/AP_HAL_ChibiOS/UARTDriver.cpp @@ -1740,7 +1740,7 @@ bool UARTDriver::set_options(uint16_t options) } // get optional features -uint8_t UARTDriver::get_options(void) const +uint16_t UARTDriver::get_options(void) const { return _last_options; } diff --git a/libraries/AP_HAL_ChibiOS/UARTDriver.h b/libraries/AP_HAL_ChibiOS/UARTDriver.h index 33ff9ce9c4..c296826ad0 100644 --- a/libraries/AP_HAL_ChibiOS/UARTDriver.h +++ b/libraries/AP_HAL_ChibiOS/UARTDriver.h @@ -69,7 +69,7 @@ public: // control optional features bool set_options(uint16_t options) override; - uint8_t get_options(void) const override; + uint16_t get_options(void) const override; // write to a locked port. If port is locked and key is not correct then 0 is returned // and write is discarded