Browse Source

RC_Channel: fixed crash in RC_ProtocolTest example test

mission-4.1.18
Andrew Tridgell 6 years ago
parent
commit
4b0339d940
  1. 2
      libraries/RC_Channel/RC_Channel.h

2
libraries/RC_Channel/RC_Channel.h

@ -331,7 +331,7 @@ public: @@ -331,7 +331,7 @@ public:
// should we ignore RC failsafe bits from receivers?
bool ignore_rc_failsafe(void) const {
return _options & uint32_t(Option::IGNORE_FAILSAFE);
return get_singleton() != nullptr && (_options & uint32_t(Option::IGNORE_FAILSAFE));
}
bool ignore_overrides() const {

Loading…
Cancel
Save