1
0
forked from fsfw/fsfw

fixed map full() function added.

Pool raw access debugging
This commit is contained in:
2020-01-14 00:49:09 +01:00
parent 01551b8fa5
commit c747952336
3 changed files with 13 additions and 2 deletions

View File

@ -92,11 +92,12 @@ ReturnValue_t PoolRawAccessHelper::handlePoolEntrySerialization(uint32_t current
counter ++;
DataSet currentDataSet = DataSet();
info << "Current array position: " << (int)arrayPosition << std::endl;
PoolRawAccess currentPoolRawAccess(currentPoolId,arrayPosition,&currentDataSet,PoolVariableIF::VAR_READ);
result = currentDataSet.read();
if (result != RETURN_OK) {
debug << std::hex << "Pool Raw Access Helper: Error reading raw dataset with returncode "
debug << std::hex << "Pool Raw Access Helper: Error reading raw dataset with returncode 0x"
<< result << std::dec << std::endl;
return result;
}
@ -134,7 +135,7 @@ ReturnValue_t PoolRawAccessHelper::checkRemainingSize(PoolRawAccess * currentPoo
*isSerialized = true;
}
else if(remainingSize > 0) {
*arrayPosition += currentPoolRawAccess->getSizeOfType();
*arrayPosition += 1;
}
else {
return RETURN_FAILED;