From d27bb9d606a1d4d880141e990b3575f9f933f3bb Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sat, 2 Sep 2023 15:21:36 +1000 Subject: [PATCH] Tools: allow more libraries to compile with no HAL_GCS_ENABLED --- Tools/AP_Periph/AP_Periph.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Tools/AP_Periph/AP_Periph.cpp b/Tools/AP_Periph/AP_Periph.cpp index 7fe5f4dd39..b4e707d0b2 100644 --- a/Tools/AP_Periph/AP_Periph.cpp +++ b/Tools/AP_Periph/AP_Periph.cpp @@ -422,10 +422,8 @@ void AP_Periph_FW::update() rcout_init_1Hz(); #endif -#if HAL_GCS_ENABLED - gcs().send_message(MSG_HEARTBEAT); - gcs().send_message(MSG_SYS_STATUS); -#endif + GCS_SEND_MESSAGE(MSG_HEARTBEAT); + GCS_SEND_MESSAGE(MSG_SYS_STATUS); } static uint32_t last_error_ms;