From b0c57fd65b8adc80b777243cd4b83ce44a5f20bf Mon Sep 17 00:00:00 2001 From: Julien Lecoeur Date: Wed, 16 Aug 2017 10:32:32 +0200 Subject: [PATCH] Return bool in added MavlinkStream*::send() --- src/modules/mavlink/mavlink_messages.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/modules/mavlink/mavlink_messages.cpp b/src/modules/mavlink/mavlink_messages.cpp index dfd1eabb6b..4378d0f83e 100644 --- a/src/modules/mavlink/mavlink_messages.cpp +++ b/src/modules/mavlink/mavlink_messages.cpp @@ -3220,7 +3220,7 @@ protected: _debug_time(0) {} - void send(const hrt_abstime t) + bool send(const hrt_abstime t) { struct debug_value_s debug = {}; @@ -3232,7 +3232,11 @@ protected: msg.value = debug.value; mavlink_msg_debug_send_struct(_mavlink->get_channel(), &msg); + + return true; } + + return false; } }; @@ -3283,7 +3287,7 @@ protected: _debug_time(0) {} - void send(const hrt_abstime t) + bool send(const hrt_abstime t) { struct debug_vect_s debug = {}; @@ -3299,7 +3303,11 @@ protected: msg.z = debug.z; mavlink_msg_debug_vect_send_struct(_mavlink->get_channel(), &msg); + + return true; } + + return false; } };