From 1b13a9d15b78538a1e2439d2b19874501ab740fd Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 27 Mar 2022 17:29:36 +1100 Subject: [PATCH] AP_RCProtocol: added using_uart() method --- libraries/AP_RCProtocol/AP_RCProtocol.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libraries/AP_RCProtocol/AP_RCProtocol.h b/libraries/AP_RCProtocol/AP_RCProtocol.h index 55b1960bac..f563d6c6d5 100644 --- a/libraries/AP_RCProtocol/AP_RCProtocol.h +++ b/libraries/AP_RCProtocol/AP_RCProtocol.h @@ -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);