AP_RangeFinder: correct use of AP_RANGEFINDER_LUA_ENABLED

new, separate define to AP_SCRIPTING_ENABLED use was incomplete
This commit is contained in:
Peter Barker 2023-10-26 16:34:11 +11:00 committed by Peter Barker
parent 7961eb6045
commit e55799c8d8
1 changed files with 1 additions and 1 deletions

View File

@ -536,7 +536,7 @@ void RangeFinder::detect_instance(uint8_t instance, uint8_t& serial_instance)
break;
case Type::Lua_Scripting:
#if AP_SCRIPTING_ENABLED
#if AP_RANGEFINDER_LUA_ENABLED
_add_backend(new AP_RangeFinder_Lua(state[instance], params[instance]), instance);
#endif
break;