MAVLink app: Only hold buffers for published topics

This commit is contained in:
Lorenz Meier
2016-08-27 15:46:48 +02:00
parent d4b588f84a
commit 8dc8ae7de8
3 changed files with 55 additions and 28 deletions

View File

@@ -337,7 +337,7 @@ void
Mavlink::set_proto_version(unsigned version)
{
if ((version == 1 || version == 0) &&
((_protocol_version_switch == 0) || (_protocol_version_switch == 1))) {
((_protocol_version_switch == 0) || (_protocol_version_switch == 1))) {
get_status()->flags |= MAVLINK_STATUS_FLAG_OUT_MAVLINK1;
_protocol_version = 1;