mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-11-09 16:41:21 +08:00
AP_Scripting: correct compilation when !AP_SCRIPTING_BINDING_VEHICLE_ENABLED
Fixes:
../../libraries/AP_Scripting/lua_bindings.cpp: In function 'int lua_AP_Vehicle_set_target_velocity_NED(lua_State*)':
../../libraries/AP_Scripting/lua_bindings.cpp:1240:23: error: 'check_AP_Vehicle' was not declared in this scope; did you mean 'check_AC_Fence'?
1240 | AP_Vehicle * ud = check_AP_Vehicle(L);
| ^~~~~~~~~~~~~~~~
| check_AC_Fence
compilation terminated due to -Wfatal-errors.
This commit is contained in:
1 parent
8384ec1b38
commit
8ea793aca7
1 file changed
+2
-2
@@ -1226,7 +1226,7 @@ int lua_gps_inject_data(lua_State *L)
|
||||
|
||||
#endif // AP_GPS_ENABLED
|
||||
|
||||
#if AP_VEHICLE_ENABLED
|
||||
#if AP_SCRIPTING_BINDING_VEHICLE_ENABLED
|
||||
int lua_AP_Vehicle_set_target_velocity_NED(lua_State *L)
|
||||
{
|
||||
const int args = lua_gettop(L);
|
||||
@@ -1258,6 +1258,6 @@ int lua_AP_Vehicle_set_target_velocity_NED(lua_State *L)
|
||||
lua_pushboolean(L, data);
|
||||
return 1;
|
||||
}
|
||||
#endif // AP_VEHICLE_ENABLED
|
||||
#endif // AP_SCRIPTING_BINDING_VEHICLE_ENABLED
|
||||
|
||||
#endif // AP_SCRIPTING_ENABLED
|
||||
Reference in new issue
Block a user