mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:32:45 +01:00
* fix priority queue insert
This commit is contained in:
parent
dad5bf866c
commit
21e6aaff24
@ -56,7 +56,7 @@ void queue_priority_add(queue_node_t* root, queue_node_t* new_obj) {
|
||||
queue_node_t* node = root;
|
||||
|
||||
while (node->next != NULL) {
|
||||
if (node->next->priority < new_obj->priority) {
|
||||
if (node->next->priority > new_obj->priority) {
|
||||
new_obj->next = node->next;
|
||||
node->next = new_obj;
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user