浏览代码

Correct queue_Data_Transfer

For files of length 1<<14 there should be no 'next', as all data are transferred in one transfer
main
WMXZ-EU 5 年前
父节点
当前提交
b6e2d1aa59
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      ehci.cpp

+ 1
- 1
ehci.cpp 查看文件

@@ -745,7 +745,7 @@ bool USBHost::queue_Data_Transfer(Pipe_t *pipe, void *buffer, uint32_t len, USBD
transfer = allocate_Transfer();
if (!transfer) return false;
data = transfer;
for (count=(len >> 14); count; count--) {
for (count=((len-1) >> 14); count; count--) {
next = allocate_Transfer();
if (!next) {
// free already-allocated qTDs

正在加载...
取消
保存