瀏覽代碼

Fix backward followup linking when creating a qTD group

main
PaulStoffregen 7 年之前
父節點
當前提交
a649cbe12b
共有 1 個檔案被更改,包括 4 行新增3 行删除
  1. +4
    -3
      k66_usbhost.ino

+ 4
- 3
k66_usbhost.ino 查看文件

@@ -609,12 +609,13 @@ bool new_Transfer(Pipe_t *pipe, void *buffer, uint32_t len)
Transfer_t *prev = NULL;
Transfer_t *p = halt;
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->next_followup = n;
p->next_followup = next;
prev = p;
p = n;
p = next;
}
p->prev_followup = prev;
p->next_followup = NULL;
print(halt, p);
// add them to a followup list

Loading…
取消
儲存