more printouts, switch on debug mode
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit
This commit is contained in:
parent
9163db6bcf
commit
32005a2d3a
@ -159,6 +159,7 @@ bool PlocSupvUartManager::handleUartReception() {
|
|||||||
} else if (bytesRead > 0) {
|
} else if (bytesRead > 0) {
|
||||||
if (debugMode) {
|
if (debugMode) {
|
||||||
sif::info << "Received " << bytesRead << " bytes from the PLOC Supervisor:" << std::endl;
|
sif::info << "Received " << bytesRead << " bytes from the PLOC Supervisor:" << std::endl;
|
||||||
|
arrayprinter::print(recBuf.data(), bytesRead);
|
||||||
}
|
}
|
||||||
recRingBuf.writeData(recBuf.data(), bytesRead);
|
recRingBuf.writeData(recBuf.data(), bytesRead);
|
||||||
tryHdlcParsing();
|
tryHdlcParsing();
|
||||||
@ -1013,7 +1014,7 @@ ReturnValue_t PlocSupvUartManager::tryHdlcParsing() {
|
|||||||
}
|
}
|
||||||
recRingBuf.deleteData(bytesRead);
|
recRingBuf.deleteData(bytesRead);
|
||||||
} else if (result != NO_PACKET_FOUND) {
|
} else if (result != NO_PACKET_FOUND) {
|
||||||
sif::warning << "ScexUartReader::performOperation: Possible packet loss" << std::endl;
|
sif::warning << "PlocSupvUartMan::performOperation: Possible packet loss" << std::endl;
|
||||||
// Markers found at wrong place
|
// Markers found at wrong place
|
||||||
// which might be a hint for a possibly lost packet.
|
// which might be a hint for a possibly lost packet.
|
||||||
// Maybe trigger event?
|
// Maybe trigger event?
|
||||||
|
@ -248,7 +248,7 @@ class PlocSupvUartManager : public DeviceCommunicationIF,
|
|||||||
|
|
||||||
std::array<uint8_t, supv::MAX_COMMAND_SIZE> tmBuf{};
|
std::array<uint8_t, supv::MAX_COMMAND_SIZE> tmBuf{};
|
||||||
|
|
||||||
bool debugMode = false;
|
bool debugMode = true;
|
||||||
bool timestamping = true;
|
bool timestamping = true;
|
||||||
|
|
||||||
// Remembers APID to know at which command a procedure failed
|
// Remembers APID to know at which command a procedure failed
|
||||||
|
Loading…
Reference in New Issue
Block a user