AP_RCProtocol: added using_uart() method

This commit is contained in:
Andrew Tridgell 2022-03-27 17:29:36 +11:00
parent 674d3aa915
commit 9ba73d362d
1 changed files with 5 additions and 0 deletions

View File

@ -135,6 +135,11 @@ public:
bool invert_rx; 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: private:
void check_added_uart(void); void check_added_uart(void);