diff --git a/src/CommunicationManager.cpp b/src/CommunicationManager.cpp index a61007b..0febf7a 100644 --- a/src/CommunicationManager.cpp +++ b/src/CommunicationManager.cpp @@ -663,7 +663,7 @@ inline void CommunicationManager::Send_Mavlink_Message_Callback( memcpy(cpy_buff,&header,sizeof(uint64_t)); tot+=sizeof(uint64_t); /*copy msg size*/ - uint16_t tmp_size=(uint16_t)mavlink_msg->payload64.size(); + uint16_t tmp_size = (uint16_t)mavlink_msg->payload64.size(); memcpy(cpy_buff+tot,&tmp_size,sizeof(uint64_t)); tot+=sizeof(uint16_t); std::cout<<"tmp size in sender"<payload64.size() - uint64_counter >= MAX_NBR_OF_INT64) tmp_size=(uint16_t)MAX_NBR_OF_INT64; else tmp_size = mavlink_msg->payload64.size() - uint64_counter; + std::cout<<"tmp size : "<payload64.size()<payload64.size()){ tmp_size=mavlink_msg->payload64.size() - uint64_counter; */