SITL: SIM_Morse: correct compilation with HAL_GCS_ENABLED false

This commit is contained in:
Peter Barker 2024-03-07 18:52:59 +11:00 committed by Peter Barker
parent 9fc068d704
commit d24e7a916f
1 changed files with 4 additions and 0 deletions

View File

@ -566,7 +566,9 @@ void Morse::update(const struct sitl_input &input)
report_FPS();
#if HAL_GCS_ENABLED
send_report();
#endif
}
@ -591,6 +593,7 @@ void Morse::report_FPS(void)
#if HAL_GCS_ENABLED
/*
send a report to the vehicle control code over MAVLink
*/
@ -669,5 +672,6 @@ void Morse::send_report(void)
}
}
#endif // HAL_GCS_ENABLED
#endif // HAL_SIM_MORSE_ENABLED