浏览代码

Fix wLength for first control transfer test

main
PaulStoffregen 7 年前
父节点
当前提交
92404ec121
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      k66_usbhost.ino

+ 1
- 1
k66_usbhost.ino 查看文件

@@ -278,7 +278,7 @@ Device_t * new_Device(uint32_t speed, uint32_t hub_addr, uint32_t hub_port)
dev->setup.bRequest = 0x06; // 6=GET_DESCRIPTOR
dev->setup.wValue = 0x0100;
dev->setup.wIndex = 0x0000;
dev->setup.wLength = 0;
dev->setup.wLength = 8;
Transfer_t *transfer = new_Transfer(dev->control_pipe, buffer, 8);
//print(dev->control_pipe);
if (transfer) queue_Transfer(transfer);

正在加载...
取消
保存