using size_t
This commit is contained in:
parent
4d8aca8417
commit
e34a438e77
@ -75,7 +75,6 @@ ReturnValue_t TmTcBridge::readTmQueue() {
|
|||||||
TmTcMessage message;
|
TmTcMessage message;
|
||||||
const uint8_t* data = nullptr;
|
const uint8_t* data = nullptr;
|
||||||
size_t size = 0;
|
size_t size = 0;
|
||||||
|
|
||||||
for (ReturnValue_t result = TmTcReceptionQueue->receiveMessage(&message);
|
for (ReturnValue_t result = TmTcReceptionQueue->receiveMessage(&message);
|
||||||
result == RETURN_OK; result = TmTcReceptionQueue->receiveMessage(&message))
|
result == RETURN_OK; result = TmTcReceptionQueue->receiveMessage(&message))
|
||||||
{
|
{
|
||||||
@ -122,7 +121,7 @@ ReturnValue_t TmTcBridge::sendStoredTm() {
|
|||||||
uint8_t counter = 0;
|
uint8_t counter = 0;
|
||||||
ReturnValue_t result = RETURN_OK;
|
ReturnValue_t result = RETURN_OK;
|
||||||
while(!fifo.empty() && counter < MAX_STORED_DATA_SENT_PER_CYCLE) {
|
while(!fifo.empty() && counter < MAX_STORED_DATA_SENT_PER_CYCLE) {
|
||||||
info << "UDP Server: Sending stored TM data. There are "
|
info << "TMTC Bridge: Sending stored TM data. There are "
|
||||||
<< (int) fifo.size() << " left to send\r\n" << std::flush;
|
<< (int) fifo.size() << " left to send\r\n" << std::flush;
|
||||||
store_address_t storeId;
|
store_address_t storeId;
|
||||||
const uint8_t* data = NULL;
|
const uint8_t* data = NULL;
|
||||||
@ -131,7 +130,8 @@ ReturnValue_t TmTcBridge::sendStoredTm() {
|
|||||||
result = tmStore->getData(storeId, &data, &size);
|
result = tmStore->getData(storeId, &data, &size);
|
||||||
sendTm(data,size);
|
sendTm(data,size);
|
||||||
if(result != RETURN_OK) {
|
if(result != RETURN_OK) {
|
||||||
error << "UDP Server: Could not send stored downlink data" << std::endl;
|
error << "TMTC Bridge: Could not send stored downlink data"
|
||||||
|
<< std::endl;
|
||||||
result = RETURN_FAILED;
|
result = RETURN_FAILED;
|
||||||
}
|
}
|
||||||
counter ++;
|
counter ++;
|
||||||
|
Loading…
Reference in New Issue
Block a user