diff --git a/libraries/AP_Scripting/generator/description/bindings.desc b/libraries/AP_Scripting/generator/description/bindings.desc index 0cc465eb10..fb1d716316 100644 --- a/libraries/AP_Scripting/generator/description/bindings.desc +++ b/libraries/AP_Scripting/generator/description/bindings.desc @@ -38,7 +38,7 @@ singleton AP_AHRS method airspeed_estimate boolean float'Null include AP_Arming/AP_Arming.h singleton AP_Arming alias arming -singleton AP_Arming method disarm boolean +singleton AP_Arming method disarm boolean AP_Arming::Method::SCRIPTING'literal singleton AP_Arming method is_armed boolean singleton AP_Arming method arm boolean AP_Arming::Method::SCRIPTING'literal diff --git a/libraries/AP_Scripting/lua_generated_bindings.cpp b/libraries/AP_Scripting/lua_generated_bindings.cpp index 84c63251b4..a8310de891 100644 --- a/libraries/AP_Scripting/lua_generated_bindings.cpp +++ b/libraries/AP_Scripting/lua_generated_bindings.cpp @@ -1743,7 +1743,7 @@ static int AP_Arming_disarm(lua_State *L) { } binding_argcheck(L, 1); - const bool data = ud->disarm(); + const bool data = ud->disarm( AP_Arming::Method::SCRIPTING); lua_pushboolean(L, data); return 1;