From ba96789b704e2bb88c69a78837a55a0d439d2d05 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sat, 2 Sep 2023 15:21:35 +1000 Subject: [PATCH] AP_PiccoloCAN: allow more libraries to compile with no HAL_GCS_ENABLED --- libraries/AP_PiccoloCAN/AP_PiccoloCAN.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/AP_PiccoloCAN/AP_PiccoloCAN.cpp b/libraries/AP_PiccoloCAN/AP_PiccoloCAN.cpp index 8c19d322ef..1cd68ac08a 100644 --- a/libraries/AP_PiccoloCAN/AP_PiccoloCAN.cpp +++ b/libraries/AP_PiccoloCAN/AP_PiccoloCAN.cpp @@ -399,6 +399,7 @@ void AP_PiccoloCAN::update() } } +#if HAL_GCS_ENABLED // send ESC telemetry messages over MAVLink void AP_PiccoloCAN::send_esc_telemetry_mavlink(uint8_t mav_chan) { @@ -473,7 +474,7 @@ void AP_PiccoloCAN::send_esc_telemetry_mavlink(uint8_t mav_chan) } } } - +#endif // send servo messages over CAN void AP_PiccoloCAN::send_servo_messages(void)