mirror of https://github.com/ArduPilot/ardupilot
AP_RangeFinder: correct use of AP_RANGEFINDER_LUA_ENABLED
new, separate define to AP_SCRIPTING_ENABLED use was incomplete
This commit is contained in:
parent
7961eb6045
commit
e55799c8d8
|
@ -536,7 +536,7 @@ void RangeFinder::detect_instance(uint8_t instance, uint8_t& serial_instance)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Type::Lua_Scripting:
|
case Type::Lua_Scripting:
|
||||||
#if AP_SCRIPTING_ENABLED
|
#if AP_RANGEFINDER_LUA_ENABLED
|
||||||
_add_backend(new AP_RangeFinder_Lua(state[instance], params[instance]), instance);
|
_add_backend(new AP_RangeFinder_Lua(state[instance], params[instance]), instance);
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue