From 4b0339d940d4d71c3815c4823d14323465989a27 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 9 Apr 2019 11:12:00 +1000 Subject: [PATCH] RC_Channel: fixed crash in RC_ProtocolTest example test --- libraries/RC_Channel/RC_Channel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/RC_Channel/RC_Channel.h b/libraries/RC_Channel/RC_Channel.h index 3e5d8f49d6..acbbb124da 100644 --- a/libraries/RC_Channel/RC_Channel.h +++ b/libraries/RC_Channel/RC_Channel.h @@ -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 {