Browse Source

Fix backward followup linking when creating a qTD group

main
PaulStoffregen 7 years ago
parent
commit
a649cbe12b
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      k66_usbhost.ino

+ 4
- 3
k66_usbhost.ino View File

Transfer_t *prev = NULL; Transfer_t *prev = NULL;
Transfer_t *p = halt; Transfer_t *p = halt;
while (p->qtd.next != (uint32_t)transfer) { while (p->qtd.next != (uint32_t)transfer) {
Transfer_t *n = (Transfer_t *)p->qtd.next;
Transfer_t *next = (Transfer_t *)p->qtd.next;
p->prev_followup = prev; p->prev_followup = prev;
p->next_followup = n;
p->next_followup = next;
prev = p; prev = p;
p = n;
p = next;
} }
p->prev_followup = prev;
p->next_followup = NULL; p->next_followup = NULL;
print(halt, p); print(halt, p);
// add them to a followup list // add them to a followup list

Loading…
Cancel
Save