Return bool in added MavlinkStream*::send()

This commit is contained in:
Julien Lecoeur
2017-08-16 10:32:32 +02:00
committed by Nuno Marques
parent be74a1a4ed
commit b0c57fd65b
+10 -2
View File
@@ -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;
}
};