AP_HAL: added get_flow_control() API

This commit is contained in:
Andrew Tridgell 2014-02-14 13:15:24 +11:00
parent dfa95b3464
commit 7c1b9b344f
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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;