This commit is contained in:
Irini Kosmidou
2022-08-30 16:51:30 +02:00
parent 13e89e1342
commit b156d78274
6 changed files with 101 additions and 75 deletions

View File

@ -34,7 +34,7 @@ ReturnValue_t ScexUartReader::performOperation(uint8_t operationCode) {
lock->unlockMutex();
while (true) {
semaphore->acquire();
sif::info << "task was started" << std::endl;
sif::info << "ScexUartReader::performOperation:task was started" << std::endl;
int bytesRead = 0;
while (true) {
bytesRead = read(serialPort, reinterpret_cast<void *>(recBuf.data()),
@ -42,7 +42,7 @@ ReturnValue_t ScexUartReader::performOperation(uint8_t operationCode) {
if (bytesRead == 0) {
MutexGuard mg(lock);
if (state == States::FINISH) {
sif::debug << "finish detected" << std::endl;
sif::debug << "ScexUartReader::performOperation:finish detected" << std::endl;
state = States::IDLE;
break;
}
@ -67,7 +67,7 @@ ReturnValue_t ScexUartReader::performOperation(uint8_t operationCode) {
}
};
// task block comes here
sif::info << "task was stopped" << std::endl;
sif::info << "ScexUartReader::performOperation: task was stopped" << std::endl;
}
return OK;
}