using current ID

This commit is contained in:
Robin Müller 2021-07-14 10:34:38 +02:00
parent f6d1b8981c
commit 5f0a3f3baa
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

View File

@ -20,7 +20,7 @@ ReturnValue_t QueueMapManager::addMessageQueue(QueueHandle_t queue, MessageQueue
uint32_t currentId = queueCounter++; uint32_t currentId = queueCounter++;
if(currentId == MessageQueueIF::NO_QUEUE) { if(currentId == MessageQueueIF::NO_QUEUE) {
// Skip the NO_QUEUE value // Skip the NO_QUEUE value
queueCounter++; currentId++;
} }
auto returnPair = queueMap.emplace(currentId, queue); auto returnPair = queueMap.emplace(currentId, queue);
if(not returnPair.second) { if(not returnPair.second) {