Browse Source

AP_RCProtocol: added using_uart() method

Copter-4.2
Andrew Tridgell 3 years ago committed by Randy Mackay
parent
commit
1b13a9d15b
  1. 5
      libraries/AP_RCProtocol/AP_RCProtocol.h

5
libraries/AP_RCProtocol/AP_RCProtocol.h

@ -135,6 +135,11 @@ public: @@ -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);

Loading…
Cancel
Save