remove flush call, belongs in lower layer
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
This commit is contained in:
parent
9d02322cd7
commit
763bf2d85b
@ -448,14 +448,6 @@ ReturnValue_t PlocSupervisorHandler::buildCommandFromCommand(DeviceCommandId_t d
|
|||||||
result = DeviceHandlerIF::COMMAND_NOT_IMPLEMENTED;
|
result = DeviceHandlerIF::COMMAND_NOT_IMPLEMENTED;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result == returnvalue::OK) {
|
|
||||||
/**
|
|
||||||
* Flushing the receive buffer to make sure there are no data left from a faulty reply.
|
|
||||||
*/
|
|
||||||
uartComIf->flushUartRxBuffer(comCookie);
|
|
||||||
}
|
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -706,7 +698,10 @@ ReturnValue_t PlocSupervisorHandler::scanForReply(const uint8_t* start, size_t r
|
|||||||
case (Apid::MEM_MAN): {
|
case (Apid::MEM_MAN): {
|
||||||
if (tmReader.getServiceId() ==
|
if (tmReader.getServiceId() ==
|
||||||
static_cast<uint8_t>(supv::tm::MemManId::UPDATE_STATUS_REPORT)) {
|
static_cast<uint8_t>(supv::tm::MemManId::UPDATE_STATUS_REPORT)) {
|
||||||
// TODO: I think this will be handled by the uart manager
|
// TODO: I think this will be handled by the uart manager?
|
||||||
|
// Actually, this is a bit tricky. Maybe the lower level will have two separate ring
|
||||||
|
// buffers, one for internally handled packets and one for packets which are handled
|
||||||
|
// here?
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user