Commit 02d3decd authored by Francesco Mani's avatar Francesco Mani

another bugfix nr_initial_sync

parent cc847e9c
...@@ -81,7 +81,7 @@ NR_UE_SSB* insert_into_list(NR_UE_SSB *head, NR_UE_SSB *node) { ...@@ -81,7 +81,7 @@ NR_UE_SSB* insert_into_list(NR_UE_SSB *head, NR_UE_SSB *node) {
NR_UE_SSB *current = head; NR_UE_SSB *current = head;
while (current->next_ssb !=NULL) { while (current->next_ssb !=NULL) {
NR_UE_SSB *temp=current->next_ssb; NR_UE_SSB *temp=current->next_ssb;
if(node->metric > current->metric) { if(node->metric > temp->metric) {
node->next_ssb = temp; node->next_ssb = temp;
current->next_ssb = node; current->next_ssb = node;
return head; return head;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment