From f4987217380d05961cd72d9547d1492e7d52b549 Mon Sep 17 00:00:00 2001
From: kochalas <konstantinos.chalas@cern.ch>
Date: Fri, 8 Sep 2017 14:52:06 +0200
Subject: [PATCH] [SIL-357] Modify the communication library to support the
 changes to the diagnostic tool

---
 .../interface/communication/MBConnection.cpp                 | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/silecs-communication-cpp/src/silecs-communication/interface/communication/MBConnection.cpp b/silecs-communication-cpp/src/silecs-communication/interface/communication/MBConnection.cpp
index 8647d58..de9fcbc 100644
--- a/silecs-communication-cpp/src/silecs-communication/interface/communication/MBConnection.cpp
+++ b/silecs-communication-cpp/src/silecs-communication/interface/communication/MBConnection.cpp
@@ -379,8 +379,6 @@ int MBConnection::writeBits(PLC *thePLC, long address, unsigned long offset, uns
         // connection is established then send data
         writeLock();
 
-        std::cout << "Address: " << address << "\n";
-
         // addr is a byte address, therefore we don't need to convert to a word address
         // However, we need to calculate the coil address from the register address
         long addr = (address - thePLC->getDOBaseAddress()) + offset;
@@ -391,8 +389,7 @@ int MBConnection::writeBits(PLC *thePLC, long address, unsigned long offset, uns
 
         // DATA topic makes sense with SEND one
         if (SEND & Log::topics_)
-            LOG(DATA) << "Write data, address: %MB" << addr / 8 << ", byte-size: " << size << "PLC DO base offset: " << thePLC->getDOBaseAddress();
-
+            LOG(DATA) << "Write data, address: %MB" << addr / 8 << ", byte-size: " << size;
         err = writeCoils(writeCtx_, (unsigned short)addr, (unsigned short)size, pBuffer);
         checkError(thePLC, err, false); // close the connection, will try again
                                         // at the next access
-- 
GitLab