From 89974c46b9a31216c2722fe58dda9d63068f850f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Wed, 22 Dec 2021 13:28:23 +0100 Subject: [PATCH] mavlink streams: add return in all cases Generally not needed here, but GCC produced an error when compiling with -finstrument-functions. --- src/modules/mavlink/streams/ACTUATOR_CONTROL_TARGET.hpp | 2 ++ src/modules/mavlink/streams/SERVO_OUTPUT_RAW.hpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/modules/mavlink/streams/ACTUATOR_CONTROL_TARGET.hpp b/src/modules/mavlink/streams/ACTUATOR_CONTROL_TARGET.hpp index 64f6eb9438..e1b231ea01 100644 --- a/src/modules/mavlink/streams/ACTUATOR_CONTROL_TARGET.hpp +++ b/src/modules/mavlink/streams/ACTUATOR_CONTROL_TARGET.hpp @@ -57,6 +57,8 @@ public: case 3: return "ACTUATOR_CONTROL_TARGET3"; } + + return "ACTUATOR_CONTROL_TARGET"; } static constexpr uint16_t get_id_static() { return MAVLINK_MSG_ID_ACTUATOR_CONTROL_TARGET; } diff --git a/src/modules/mavlink/streams/SERVO_OUTPUT_RAW.hpp b/src/modules/mavlink/streams/SERVO_OUTPUT_RAW.hpp index 89b8918acc..77640368ff 100644 --- a/src/modules/mavlink/streams/SERVO_OUTPUT_RAW.hpp +++ b/src/modules/mavlink/streams/SERVO_OUTPUT_RAW.hpp @@ -51,6 +51,8 @@ public: case 1: return "SERVO_OUTPUT_RAW_1"; } + + return "SERVO_OUTPUT_RAW"; } static constexpr uint16_t get_id_static() { return MAVLINK_MSG_ID_SERVO_OUTPUT_RAW; }