mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-28 10:43:58 -04:00
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:
parent
5cd8a3a429
commit
e75f2ecf07
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user