mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 09:58:28 -04:00
RC_Channel: fixed crash in RC_ProtocolTest example test
This commit is contained in:
parent
d57ea43ea6
commit
4b0339d940
@ -331,7 +331,7 @@ public:
|
|||||||
|
|
||||||
// should we ignore RC failsafe bits from receivers?
|
// should we ignore RC failsafe bits from receivers?
|
||||||
bool ignore_rc_failsafe(void) const {
|
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 {
|
bool ignore_overrides() const {
|
||||||
|
Loading…
Reference in New Issue
Block a user