important bugfix for queue map manager

This commit is contained in:
Robin Müller 2021-07-14 01:27:15 +02:00
parent d5dfffda2d
commit 4803fb2cbd
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

View File

@ -17,7 +17,7 @@ QueueMapManager* QueueMapManager::instance() {
ReturnValue_t QueueMapManager::addMessageQueue(QueueHandle_t queue, MessageQueueId_t* id) {
MutexGuard lock(mapLock);
uint32_t currentId = queueCounter++;
uint32_t currentId = ++queueCounter;
auto returnPair = queueMap.emplace(currentId, queue);
if(not returnPair.second) {
#if FSFW_CPP_OSTREAM_ENABLED == 1