RC_Channel: fixed crash in RC_ProtocolTest example test

This commit is contained in:
Andrew Tridgell 2019-04-09 11:12:00 +10:00
parent d57ea43ea6
commit 4b0339d940
1 changed files with 1 additions and 1 deletions

View File

@ -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 {