5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-01-10 18:08:30 -04:00

Plane: scripting init sends failure message

This commit is contained in:
Randy Mackay 2019-11-26 14:40:44 +09:00
parent 36fdad4e61
commit b3928d3eee

View File

@ -228,9 +228,7 @@ void Plane::startup_ground(void)
#endif #endif
#ifdef ENABLE_SCRIPTING #ifdef ENABLE_SCRIPTING
if (!g2.scripting.init()) { g2.scripting.init();
gcs().send_text(MAV_SEVERITY_ERROR, "Scripting failed to start");
}
#endif // ENABLE_SCRIPTING #endif // ENABLE_SCRIPTING
// reset last heartbeat time, so we don't trigger failsafe on slow // reset last heartbeat time, so we don't trigger failsafe on slow