Skip to content

Commit

Permalink
Merge pull request #1808 from mavlink/pr-fix-rtk
Browse files Browse the repository at this point in the history
rtk: fix multi part data being sent
  • Loading branch information
julianoes authored Jun 20, 2022
2 parents 12cf8cf + 9b2e64a commit e495d68
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 e495d68

Please sign in to comment.