From 7c1b9b344f025e414810144fbd1199b2c1f4c075 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 14 Feb 2014 13:15:24 +1100 Subject: [PATCH] AP_HAL: added get_flow_control() API --- libraries/AP_HAL/UARTDriver.h | 1 + libraries/AP_HAL_PX4/UARTDriver.h | 1 + 2 files changed, 2 insertions(+) diff --git a/libraries/AP_HAL/UARTDriver.h b/libraries/AP_HAL/UARTDriver.h index 0b6b5e4474..c5ea81ae37 100644 --- a/libraries/AP_HAL/UARTDriver.h +++ b/libraries/AP_HAL/UARTDriver.h @@ -43,6 +43,7 @@ public: FLOW_CONTROL_DISABLE=0, FLOW_CONTROL_ENABLE=1, FLOW_CONTROL_AUTO=2 }; virtual void set_flow_control(enum flow_control flow_control_setting) {}; + virtual enum flow_control get_flow_control(void) { return FLOW_CONTROL_DISABLE; }; /* Implementations of BetterStream virtual methods. These are * provided by AP_HAL to ensure consistency between ports to diff --git a/libraries/AP_HAL_PX4/UARTDriver.h b/libraries/AP_HAL_PX4/UARTDriver.h index ebca295652..ff35e1c6ce 100644 --- a/libraries/AP_HAL_PX4/UARTDriver.h +++ b/libraries/AP_HAL_PX4/UARTDriver.h @@ -37,6 +37,7 @@ public: } void set_flow_control(enum flow_control flow_control); + enum flow_control get_flow_control(void) { return _flow_control; } private: const char *_devpath;