1
0
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:
Kaspar Schleiser 2010-11-11 11:21:58 +01:00
parent dad5bf866c
commit 21e6aaff24

View File

@ -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;