mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
AP_IOMCU: fixed crash with BRD_IO_ENABLE=0
This commit is contained in:
parent
2978649cd4
commit
320ada2002
@ -444,7 +444,9 @@ void AP_IOMCU::print_debug(void)
|
|||||||
// trigger an ioevent
|
// trigger an ioevent
|
||||||
void AP_IOMCU::trigger_event(uint8_t event)
|
void AP_IOMCU::trigger_event(uint8_t event)
|
||||||
{
|
{
|
||||||
chEvtSignal(thread_ctx, EVENT_MASK(event));
|
if (thread_ctx != nullptr) {
|
||||||
|
chEvtSignal(thread_ctx, EVENT_MASK(event));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// get state of safety switch
|
// get state of safety switch
|
||||||
|
Loading…
Reference in New Issue
Block a user