mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-05 23:43:58 -04:00
AP_HAL: added get_flow_control() API
This commit is contained in:
parent
dfa95b3464
commit
7c1b9b344f
@ -43,6 +43,7 @@ public:
|
|||||||
FLOW_CONTROL_DISABLE=0, FLOW_CONTROL_ENABLE=1, FLOW_CONTROL_AUTO=2
|
FLOW_CONTROL_DISABLE=0, FLOW_CONTROL_ENABLE=1, FLOW_CONTROL_AUTO=2
|
||||||
};
|
};
|
||||||
virtual void set_flow_control(enum flow_control flow_control_setting) {};
|
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
|
/* Implementations of BetterStream virtual methods. These are
|
||||||
* provided by AP_HAL to ensure consistency between ports to
|
* provided by AP_HAL to ensure consistency between ports to
|
||||||
|
@ -37,6 +37,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void set_flow_control(enum flow_control flow_control);
|
void set_flow_control(enum flow_control flow_control);
|
||||||
|
enum flow_control get_flow_control(void) { return _flow_control; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
const char *_devpath;
|
const char *_devpath;
|
||||||
|
Loading…
Reference in New Issue
Block a user