missing packet checks
This commit is contained in:
parent
e1c06ce1f5
commit
67ab3f981b
@ -906,7 +906,10 @@ ReturnValue_t PlocSupervisorHandler::handleAckReport(const uint8_t* data) {
|
||||
ReturnValue_t result = RETURN_OK;
|
||||
|
||||
AcknowledgmentReport ack(data, SIZE_ACK_REPORT);
|
||||
// ack.addWholeData(data, SIZE_ACK_REPORT);
|
||||
result = ack.checkSize();
|
||||
if(result != RETURN_OK) {
|
||||
return result;
|
||||
}
|
||||
|
||||
result = ack.checkCrc();
|
||||
if (result != RETURN_OK) {
|
||||
@ -960,9 +963,6 @@ ReturnValue_t PlocSupervisorHandler::handleExecutionReport(const uint8_t* data)
|
||||
ReturnValue_t result = RETURN_OK;
|
||||
|
||||
ExecutionReport exe(data, SIZE_EXE_REPORT);
|
||||
if (exe.isNull()) {
|
||||
return RETURN_FAILED;
|
||||
}
|
||||
result = exe.checkSize();
|
||||
if (result != RETURN_OK) {
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user