mirror of https://github.com/ArduPilot/ardupilot
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
|
||||
void AP_IOMCU::trigger_event(uint8_t event)
|
||||
{
|
||||
if (thread_ctx != nullptr) {
|
||||
chEvtSignal(thread_ctx, EVENT_MASK(event));
|
||||
}
|
||||
}
|
||||
|
||||
// get state of safety switch
|
||||
|
|
Loading…
Reference in New Issue