Skip to content

Commit f435834

Browse files
committed
AP_Scripting: protect CRSF scripting when there is no scripting
1 parent ab6d1ff commit f435834

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: libraries/AP_Scripting/AP_Scripting_CRSFMenu.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#include "AP_Scripting_config.h"
2+
3+
#if AP_SCRIPTING_ENABLED
4+
25
#include "AP_Scripting_CRSFMenu.h"
36

47
#if AP_CRSF_SCRIPTING
@@ -131,3 +134,4 @@ int lua_CRSF_param_data(lua_State *L)
131134
}
132135

133136
#endif // AP_CRSF_SCRIPTING
137+
#endif // AP_SCRIPTING

0 commit comments

Comments
 (0)