Skip to content

Commit

Permalink
rtk: fix multi part data being sent
Browse files Browse the repository at this point in the history
Instead of always sending the first part we should actually send the
remaining data as well, duh.
  • Loading branch information
julianoes committed Jun 23, 2022
1 parent b1b0d69 commit 2d2d85c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mavsdk/plugins/rtk/rtk_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Rtk::Result RtkImpl::send_rtcm_data(Rtk::RtcmData rtcm_data)
&message,
flags,
static_cast<uint8_t>(std::min(field_len, bytes_to_send)),
reinterpret_cast<const uint8_t*>(rtcm_data.data.c_str()));
reinterpret_cast<const uint8_t*>(rtcm_data.data.c_str() + (i * field_len)));

if (!_parent->send_message(message)) {
++_sequence;
Expand Down

0 comments on commit 2d2d85c

Please sign in to comment.