tmtc bridge bugfix: tm data deleted when overwriting old data

This commit is contained in:
Robin Müller 2019-12-26 22:07:17 +01:00
parent 33a7c033a2
commit a38a2f4b3a

View File

@ -111,6 +111,7 @@ ReturnValue_t TmTcBridge::storeDownlinkData(TmTcMessage *message) {
info << "TMTC Bridge: TM downlink max. number of stored packet IDs reached."
" Overwriting old data" << std::endl;
fifo.retrieve(&storeId);
tmStore->deleteData(storeId);
}
storeId = message->getStorageId();
fifo.insert(storeId);