From 9b2e64a9d9962ed8216b0c604a5c15d9e38c947c Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Mon, 20 Jun 2022 09:44:23 +0200 Subject: [PATCH] rtk: fix multi part data being sent Instead of always sending the first part we should actually send the remaining data as well, duh. --- src/mavsdk/plugins/rtk/rtk_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mavsdk/plugins/rtk/rtk_impl.cpp b/src/mavsdk/plugins/rtk/rtk_impl.cpp index c6b793dd3d..f7e0bb6045 100644 --- a/src/mavsdk/plugins/rtk/rtk_impl.cpp +++ b/src/mavsdk/plugins/rtk/rtk_impl.cpp @@ -57,7 +57,7 @@ Rtk::Result RtkImpl::send_rtcm_data(Rtk::RtcmData rtcm_data) &message, flags, static_cast(std::min(field_len, bytes_to_send)), - reinterpret_cast(rtcm_data.data.c_str())); + reinterpret_cast(rtcm_data.data.c_str() + (i * field_len))); if (!_parent->send_message(message)) { ++_sequence;