Sub: call BoardConfig.init_safety() at end of startup
this fixes a bug where motors can start on soft reboot
This commit is contained in:
parent
3eeff938b0
commit
36a633bc7a
@ -185,6 +185,9 @@ void Sub::init_ardupilot()
|
|||||||
start_logging(); // create a new log if necessary
|
start_logging(); // create a new log if necessary
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// disable safety if requested
|
||||||
|
BoardConfig.init_safety();
|
||||||
|
|
||||||
hal.console->print("\nInit complete");
|
hal.console->print("\nInit complete");
|
||||||
|
|
||||||
// flag that initialisation has completed
|
// flag that initialisation has completed
|
||||||
|
Loading…
Reference in New Issue
Block a user