meier/pdec #110

Merged
muellerr merged 10 commits from meier/pdec into develop 2021-11-19 12:49:37 +01:00
Showing only changes of commit 08b369f667 - Show all commits

View File

@ -256,7 +256,7 @@ bool PdecHandler::checkFrameAna(uint32_t pdecFar) {
break; break;
} }
default: { default: {
sif::debug << "PdecHandler::checkFrameAna: Invaid frame analysis report" << std::endl; sif::debug << "PdecHandler::checkFrameAna: Invalid frame analysis report" << std::endl;
break; break;
} }
} }
@ -311,7 +311,7 @@ void PdecHandler::handleIReason(uint32_t pdecFar, ReturnValue_t parameter1) {
break; break;
} }
default: { default: {
sif::debug << "PdecHandler::handleIReason: Invaid reason id" << std::endl; sif::debug << "PdecHandler::handleIReason: Invalid reason id" << std::endl;
break; break;
} }
} }
@ -382,16 +382,16 @@ ReturnValue_t PdecHandler::readTc(uint32_t& tcLength) {
tcSegment[idx + 2] = static_cast<uint8_t>(tcData & 0xFF); tcSegment[idx + 2] = static_cast<uint8_t>(tcData & 0xFF);
} }
else if (tcLength - idx + 1 == 3) { else if (tcLength - idx + 1 == 3) {
tcSegment[idx - 1] = static_cast<uint8_t>((tcData >> 16) & 0xFF); tcSegment[idx - 1] = static_cast<uint8_t>((tcData >> 24) & 0xFF);
tcSegment[idx] = static_cast<uint8_t>((tcData >> 8) & 0xFF); tcSegment[idx] = static_cast<uint8_t>((tcData >> 16) & 0xFF);
tcSegment[idx + 1] = static_cast<uint8_t>(tcData & 0xFF); tcSegment[idx + 1] = static_cast<uint8_t>((tcData >> 8) & 0xFF);
} }
else if (tcLength - idx + 1 == 2) { else if (tcLength - idx + 1 == 2) {
tcSegment[idx - 1] = static_cast<uint8_t>((tcData >> 8) & 0xFF); tcSegment[idx - 1] = static_cast<uint8_t>((tcData >> 24) & 0xFF);
tcSegment[idx + 1] = static_cast<uint8_t>(tcData & 0xFF); tcSegment[idx] = static_cast<uint8_t>((tcData >> 16) & 0xFF);
} }
else if (tcLength - idx + 1 == 1) { else if (tcLength - idx + 1 == 1) {
tcSegment[idx - 1] = static_cast<uint8_t>(tcData & 0xFF); tcSegment[idx - 1] = static_cast<uint8_t>((tcData >> 24) & 0xFF);
} }
else { else {
tcSegment[idx - 1] = static_cast<uint8_t>((tcData >> 24) & 0xFF); tcSegment[idx - 1] = static_cast<uint8_t>((tcData >> 24) & 0xFF);