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:
Andrew Tridgell 2017-04-30 10:48:01 +10:00
parent 3eeff938b0
commit 36a633bc7a

View File

@ -185,6 +185,9 @@ void Sub::init_ardupilot()
start_logging(); // create a new log if necessary
}
// disable safety if requested
BoardConfig.init_safety();
hal.console->print("\nInit complete");
// flag that initialisation has completed