AP_Scripting: log disarm method

This commit is contained in:
Peter Barker 2020-02-22 00:09:57 +11:00 committed by Andrew Tridgell
parent 7b9cdd6d06
commit 1e82ae4676
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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;