mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-02-08 03:05:46 +08:00
AP_Scripting: stop and restart scripting via command int
This commit is contained in:
committed by
Andrew Tridgell
parent
6a46ccf019
commit
b047ea5c02
@@ -429,7 +429,7 @@ void lua_scripts::run(void) {
|
||||
succeeded_initial_load = true;
|
||||
#endif // __clang_analyzer__
|
||||
|
||||
while (AP_Scripting::get_singleton()->enabled()) {
|
||||
while (AP_Scripting::get_singleton()->should_run()) {
|
||||
// handle terminal data if we have any
|
||||
if (terminal.session) {
|
||||
doREPL(L);
|
||||
|
||||
Reference in New Issue
Block a user