WIP: somethings wrong.. #19

Closed
muellerr wants to merge 808 commits from source/master into master
2 changed files with 6 additions and 13 deletions
Showing only changes of commit 7a79fab52a - Show all commits

View File

@ -68,18 +68,6 @@ ReturnValue_t TmTcBridge::handleTc() {
uint8_t * recvBuffer = nullptr;
size_t recvLen = 0;
ReturnValue_t result = receiveTc(&recvBuffer, &recvLen);
if(result == RETURN_OK and recvLen > 0 and recvBuffer != nullptr) {
store_address_t storeId = 0;
ReturnValue_t result = tcStore->addData(&storeId,
recvBuffer, (uint32_t)recvLen);
if(result != RETURN_OK) {
return result;
}
TmTcMessage message(storeId);
if (TmTcReceptionQueue->sendToDefault(&message) != RETURN_OK) {
tcStore->deleteData(storeId);
}
}
return result;
}

View File

@ -65,7 +65,12 @@ protected:
bool tmStored = false;
/**
* Handle TC reception. Default implementation provided
* @brief Handle TC reception
* @details
* Default implementation provided, but is empty.
* Child handler should override this in most cases orsend TC to the
* TC distributor directly with the address of the reception queue by
* calling getReportRecptionQueue()
* @return
*/
virtual ReturnValue_t handleTc();