From 406a52b162e31753a930509964d9bd64efbd34ef Mon Sep 17 00:00:00 2001
From: Jens Georg <jens.georg@desy.de>
Date: Thu, 28 Apr 2022 15:14:11 +0200
Subject: [PATCH] dummy: Improve readability

---
 tests/src/TecDummy.cc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/src/TecDummy.cc b/tests/src/TecDummy.cc
index b22d30e..4736ca7 100644
--- a/tests/src/TecDummy.cc
+++ b/tests/src/TecDummy.cc
@@ -54,14 +54,14 @@ void TecDummy::read(uint64_t bar, uint64_t address, int32_t* data, size_t sizeIn
     frameData.erase(endOfFrame);
 
     std::string frameReply{""};
-    if(!simulateSerialTimeout) {
+    if(not simulateSerialTimeout) {
       // perform data processing
       frameReply = processFrame(frameData);
     }
     else {
       // In case of timeout, the marker is written to the start of the frame
       // The byte order is swapped here to compensate swapping of the reg_command,
-      // this is neccessary, because the TEC lib checks the timeout marker before
+      // this is necessary, because the TEC lib checks the timeout marker before
       // changing the byte order of the received frame.
       const uint32_t timeoutMarker{htonl(TEC_MAGIC_TIMEOUT)};
       frameReply = std::string(sizeof(uint32_t), '\0');
@@ -156,6 +156,7 @@ std::string TecDummy::processFrame(const std::string& command) {
 
   if(errorFlags[parameterId] != TecErrorCode::NO_ERROR) {
     // Returing an error has been requested through the dummy interface
+    // Returning an error has been requested through the dummy interface
     result = "!" + parsedFrame[TecFramePart::ADDRESS] + parsedFrame[TecFramePart::SEQUENCE];
     result += "+"; // marks the error
     std::stringstream ss;
-- 
GitLab