another bugfix in CSB
This commit is contained in:
parent
d641d63531
commit
f03b7cd660
@ -49,6 +49,17 @@ ReturnValue_t Service1TelecommandVerification::performOperation(uint8_t operatio
|
|||||||
ReturnValue_t Service1TelecommandVerification::sendVerificationReport(
|
ReturnValue_t Service1TelecommandVerification::sendVerificationReport(
|
||||||
PusVerificationMessage* message) {
|
PusVerificationMessage* message) {
|
||||||
ReturnValue_t result;
|
ReturnValue_t result;
|
||||||
|
uint8_t reportId = message->getReportId();
|
||||||
|
if(reportId == 0 or reportId > 8) {
|
||||||
|
#if FSFW_CPP_OSTREAM_ENABLED == 1
|
||||||
|
sif::error << "Service1TelecommandVerification::sendVerificationReport: Invalid report ID " <<
|
||||||
|
static_cast<int>(reportId) << " detected" << std::endl;
|
||||||
|
#else
|
||||||
|
sif::printError("Service1TelecommandVerification::sendVerificationReport: Invalid report ID "
|
||||||
|
"%d detected\n", reportId);
|
||||||
|
#endif
|
||||||
|
return HasReturnvaluesIF::RETURN_FAILED;
|
||||||
|
}
|
||||||
if (message->getReportId() % 2 == 0) {
|
if (message->getReportId() % 2 == 0) {
|
||||||
result = generateFailureReport(message);
|
result = generateFailureReport(message);
|
||||||
} else {
|
} else {
|
||||||
|
@ -457,8 +457,8 @@ void CommandingServiceBase::prepareVerificationFailureWithFullInfo(uint8_t repor
|
|||||||
}
|
}
|
||||||
void CommandingServiceBase::prepareVerificationSuccessWithFullInfo(
|
void CommandingServiceBase::prepareVerificationSuccessWithFullInfo(
|
||||||
uint8_t reportId, CommandingServiceBase::CommandInfo::TcInfo& tcInfo) {
|
uint8_t reportId, CommandingServiceBase::CommandInfo::TcInfo& tcInfo) {
|
||||||
failParams.reportId = reportId;
|
successParams.reportId = reportId;
|
||||||
failParams.tcPacketId = tcInfo.tcPacketId;
|
successParams.tcPacketId = tcInfo.tcPacketId;
|
||||||
failParams.tcPsc = tcInfo.tcSequenceControl;
|
successParams.tcPsc = tcInfo.tcSequenceControl;
|
||||||
failParams.ackFlags = tcInfo.ackFlags;
|
successParams.ackFlags = tcInfo.ackFlags;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user