diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/mavlink/mavlink_receiver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/mavlink/mavlink_receiver.cpp b/src/modules/mavlink/mavlink_receiver.cpp index 4d7b35f03..9e3abc48e 100644 --- a/src/modules/mavlink/mavlink_receiver.cpp +++ b/src/modules/mavlink/mavlink_receiver.cpp @@ -927,7 +927,7 @@ MavlinkReceiver::handle_message_request_data_stream(mavlink_message_t *msg) mavlink_request_data_stream_t req; mavlink_msg_request_data_stream_decode(msg, &req); - if (req.target_system == mavlink_system.sysid && req.target_component == mavlink_system.compid) { + if (req.target_system == mavlink_system.sysid && req.target_component == mavlink_system.compid && req.req_message_rate != 0) { float rate = req.start_stop ? (1000.0f / req.req_message_rate) : 0.0f; MavlinkStream *stream; |