receiveTc (almost) empty now
This commit is contained in:
parent
fdbc5d5c57
commit
7a79fab52a
@ -68,18 +68,6 @@ ReturnValue_t TmTcBridge::handleTc() {
|
|||||||
uint8_t * recvBuffer = nullptr;
|
uint8_t * recvBuffer = nullptr;
|
||||||
size_t recvLen = 0;
|
size_t recvLen = 0;
|
||||||
ReturnValue_t result = receiveTc(&recvBuffer, &recvLen);
|
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;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,7 +65,12 @@ protected:
|
|||||||
bool tmStored = false;
|
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
|
* @return
|
||||||
*/
|
*/
|
||||||
virtual ReturnValue_t handleTc();
|
virtual ReturnValue_t handleTc();
|
||||||
|
Loading…
Reference in New Issue
Block a user