Merge branch 'bugfix/fix_interrupt_list_insert_issue' into 'master'

esp32: fix interrupt list insert issue

See merge request idf/esp-idf!2391
pull/1880/merge
Jiang Jiang Jian 2018-05-16 18:18:58 +08:00
commit c54a679a41
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -194,10 +194,10 @@ static void insert_vector_desc(vector_desc_t *to_insert)
prev=vd;
vd=vd->next;
}
if (vd==NULL && prev==NULL) {
if ((vector_desc_head==NULL) || (prev==NULL)) {
//First item
to_insert->next = vd;
vector_desc_head=to_insert;
vector_desc_head->next=NULL;
} else {
prev->next=to_insert;
to_insert->next=vd;