From 36a633bc7a2027302685b877f0816938d6bd5d58 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 30 Apr 2017 10:48:01 +1000 Subject: [PATCH] Sub: call BoardConfig.init_safety() at end of startup this fixes a bug where motors can start on soft reboot --- ArduSub/system.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ArduSub/system.cpp b/ArduSub/system.cpp index 46318131bc..6fabaa6dfc 100644 --- a/ArduSub/system.cpp +++ b/ArduSub/system.cpp @@ -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