Index: sources/ApplicationController.cpp =================================================================== diff -u -rbb74da05f81b82dad3ec844c1feb1135b949f1c2 -r9d8a60eb984003d3f7814cbe507b1b37f519bc80 --- sources/ApplicationController.cpp (.../ApplicationController.cpp) (revision bb74da05f81b82dad3ec844c1feb1135b949f1c2) +++ sources/ApplicationController.cpp (.../ApplicationController.cpp) (revision 9d8a60eb984003d3f7814cbe507b1b37f519bc80) @@ -7,9 +7,9 @@ * * \file ApplicationController.cpp * \author (last) Peter Lucia - * \date (last) 25-Jun-2020 + * \date (last) 15-Oct-2020 * \author (original) Behrouz NematiPour - * \date (original) 24-Sep-2019 + * \date (original) 26-Aug-2020 * */ #include "ApplicationController.h" @@ -135,7 +135,7 @@ void ApplicationController::initThread(QThread &vThread) { // runs in main thread - Q_ASSERT_X(QThread::currentThread() == qApp->thread() , __func__, "The Class initialization must be done in Main Thread" ); + Q_ASSERT_X(QThread::currentThread() == qApp->thread(), __func__, "The Class initialization must be done in Main Thread" ); _thread = &vThread; _thread->setObjectName(QString("%1_Thread").arg(metaObject()->className())); connect(qApp, SIGNAL(aboutToQuit()), this, SLOT(quit())); @@ -297,7 +297,8 @@ if (mFakeDataLen) { if (gFakeSeqAtBegin) { createFakeSeqAtBeginLongMessage(mData, mFakeDataLen); - } else { + } + else { createFakeSequencedLongMessage (mData, mFakeDataLen); } } @@ -324,7 +325,7 @@ if (vFakeDataLen == 1 && gFakeData == QByteArray::fromHex(gFakeData_default)) { static quint16 txCount = 0; Types::U16 seq; - quint8 dataBytesLeft = 0; + quint8 dataBytesLeft = 0; const quint8 crcBytesLen = 2; for (int i = 0; i < 13; i++) { switch (i) { @@ -358,7 +359,8 @@ Types::safeIncrement(txCount); } vData += QByteArray::fromHex(data.toHex()); - } else { + } + else { vData += gFakeData; } } @@ -379,7 +381,7 @@ if (vFakeDataLen == 1 && gFakeData == QByteArray::fromHex(gFakeData_default)) { static quint32 txCount = 0; Types::U32 seq; - quint8 dataBytesLeft = 0; + quint8 dataBytesLeft = 0; const quint8 crcBytesLen = 2; for (int i = 0; i < 13; i++) { switch (i) { @@ -419,7 +421,8 @@ Types::safeIncrement(txCount); } vData += QByteArray::fromHex(data.toHex()); - } else { + } + else { vData += gFakeData; } }