AP_Scripting: protect CRSF scripting when there is no scripting

This commit is contained in:
Andy Piper
2025-02-24 20:37:20 +00:00
committed by Andrew Tridgell
parent c54f0c5d1c
commit 25f0b7bda5

View File

@@ -1,4 +1,7 @@
#include "AP_Scripting_config.h"
#if AP_SCRIPTING_ENABLED
#include "AP_Scripting_CRSFMenu.h"
#if AP_CRSF_SCRIPTING
@@ -131,3 +134,4 @@ int lua_CRSF_param_data(lua_State *L)
}
#endif // AP_CRSF_SCRIPTING
#endif // AP_SCRIPTING