AP_RangeFinder: correct use of enable defines for Lua backend

This commit is contained in:
Peter Barker 2023-07-06 14:56:43 +10:00 committed by Randy Mackay
parent bf3bafcd17
commit f697489ab7
1 changed files with 5 additions and 3 deletions

View File

@ -13,11 +13,13 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "AP_RangeFinder_config.h"
#if AP_RANGEFINDER_LUA_ENABLED
#include "AP_RangeFinder_Lua.h" #include "AP_RangeFinder_Lua.h"
#include <AP_HAL/AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if AP_SCRIPTING_ENABLED
// constructor // constructor
AP_RangeFinder_Lua::AP_RangeFinder_Lua(RangeFinder::RangeFinder_State &_state, AP_RangeFinder_Params &_params) : AP_RangeFinder_Lua::AP_RangeFinder_Lua(RangeFinder::RangeFinder_State &_state, AP_RangeFinder_Params &_params) :
AP_RangeFinder_Backend(_state, _params) AP_RangeFinder_Backend(_state, _params)
@ -49,4 +51,4 @@ void AP_RangeFinder_Lua::update(void)
} }
} }
#endif #endif // AP_RANGEFINDER_LUA_ENABLED