CFDP SOURCE handler #157
@ -371,5 +371,6 @@ void cfdp::SourceHandler::addError(ReturnValue_t error) {
|
|||||||
if (fsmResult.errors < fsmResult.errorCodes.size()) {
|
if (fsmResult.errors < fsmResult.errorCodes.size()) {
|
||||||
fsmResult.errorCodes[fsmResult.errors] = error;
|
fsmResult.errorCodes[fsmResult.errors] = error;
|
||||||
fsmResult.errors++;
|
fsmResult.errors++;
|
||||||
|
fsmResult.result = error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -89,7 +89,7 @@ ReturnValue_t LocalPool::deleteData(store_address_t storeId) {
|
|||||||
ReturnValue_t status = returnvalue::OK;
|
ReturnValue_t status = returnvalue::OK;
|
||||||
size_type pageSize = getSubpoolElementSize(storeId.poolIndex);
|
size_type pageSize = getSubpoolElementSize(storeId.poolIndex);
|
||||||
if ((pageSize != 0) and (storeId.packetIndex < numberOfElements[storeId.poolIndex])) {
|
if ((pageSize != 0) and (storeId.packetIndex < numberOfElements[storeId.poolIndex])) {
|
||||||
uint16_t packetPosition = getRawPosition(storeId);
|
size_type packetPosition = getRawPosition(storeId);
|
||||||
uint8_t* ptr = &store[storeId.poolIndex][packetPosition];
|
uint8_t* ptr = &store[storeId.poolIndex][packetPosition];
|
||||||
std::memset(ptr, 0, pageSize);
|
std::memset(ptr, 0, pageSize);
|
||||||
// Set free list
|
// Set free list
|
||||||
|
Loading…
Reference in New Issue
Block a user