AP_RCProtocol: added using_uart() method

This commit is contained in:
Andrew Tridgell 2022-03-27 17:29:36 +11:00 committed by Randy Mackay
parent e87e035ccd
commit 1b13a9d15b
1 changed files with 5 additions and 0 deletions

View File

@ -135,6 +135,11 @@ public:
bool invert_rx;
};
// return true if we are decoding a byte stream, instead of pulses
bool using_uart(void) const {
return _detected_with_bytes;
}
private:
void check_added_uart(void);