From 79e0ee04ed491ef8c25da1e94a4d653d21f2302f Mon Sep 17 00:00:00 2001 From: vivek-shankar Date: Sun, 29 Jan 2017 04:24:14 -0500 Subject: [PATCH] changes in step for clearing receiver buffer for multi msg --- src/CommunicationManager.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/CommunicationManager.cpp b/src/CommunicationManager.cpp index 7f5fa4a..497bf07 100644 --- a/src/CommunicationManager.cpp +++ b/src/CommunicationManager.cpp @@ -373,9 +373,9 @@ inline void CommunicationManager::Check_In_Messages_and_Transfer_To_Topics() if (size_in_messages > 0) { if(!multi_msgs_receive.empty()) steps++; - if(steps>10){ + if(steps>1000){ steps=0; - multi_msgs_receive.clear(); + //multi_msgs_receive.clear(); receiver_cur_checksum=0; } uint64_t current_int64 = 0; @@ -414,7 +414,6 @@ inline void CommunicationManager::Check_In_Messages_and_Transfer_To_Topics() char temporary_buffer[20]; std::string frame; std::cout << "Multi msg Received header " <