AP_IOMCU: handle watchdog reset in IO firmware

This commit is contained in:
Andrew Tridgell 2019-04-22 12:46:58 +10:00
parent 340722c3c3
commit 6181c66e5c

View File

@ -176,6 +176,11 @@ void AP_IOMCU_FW::init()
// we do no allocations after setup completes
reg_status.freemem = hal.util->available_memory();
if (hal.util->was_watchdog_safety_off()) {
hal.rcout->force_safety_off();
reg_status.flag_safety_off = true;
}
}