AP_Scripting: include extern-hal line to fix compilation

this external line was coming in from a header file somewhere...
This commit is contained in:
Peter Barker 2024-02-13 16:38:56 +11:00 committed by Peter Barker
parent 37a9fd4e14
commit 3f34eb12b0
1 changed files with 2 additions and 0 deletions

View File

@ -2924,6 +2924,8 @@ int main(int argc, char **argv) {
// for set_and_print_new_error_message deprecate warning
fprintf(source, "#include <AP_Scripting/lua_scripts.h>\n");
fprintf(source, "extern const AP_HAL::HAL& hal;\n");
trace(TRACE_GENERAL, "Starting emission");
emit_headers(source);