Sub: scripting init sends failure message

This commit is contained in:
Randy Mackay 2019-11-26 14:40:53 +09:00
parent b3928d3eee
commit 952517cb40
1 changed files with 1 additions and 3 deletions

View File

@ -190,9 +190,7 @@ void Sub::init_ardupilot()
startup_INS_ground();
#ifdef ENABLE_SCRIPTING
if (!g2.scripting.init()) {
gcs().send_text(MAV_SEVERITY_ERROR, "Scripting failed to start");
}
g2.scripting.init();
#endif // ENABLE_SCRIPTING
// we don't want writes to the serial port to cause us to pause