AP_IOMCU: ignore call to shutdown if iomcu not initialised

fixes watchdog trigger on call to trigger after enabling iomcu from disabled state
This commit is contained in:
bugobliterator 2025-01-31 14:31:50 +11:00 committed by Peter Barker
parent 5cd8a3a429
commit e75f2ecf07

View File

@ -1193,6 +1193,10 @@ bool AP_IOMCU::healthy(void)
*/ */
void AP_IOMCU::shutdown(void) void AP_IOMCU::shutdown(void)
{ {
if (!initialised) {
// we're not initialised yet, so cannot shutdown
return;
}
do_shutdown = true; do_shutdown = true;
while (!done_shutdown) { while (!done_shutdown) {
hal.scheduler->delay(1); hal.scheduler->delay(1);