fix length of returned usb packet
git-svn-id: https://svn.openpcd.org:2342/trunk@20 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
This commit is contained in:
parent
2c303468af
commit
da75ea5948
|
@ -71,6 +71,7 @@ static int usb_in(struct req_ctx *rctx)
|
|||
//data_len = ntohs(poh->len);
|
||||
|
||||
memcpy(pih, poh, sizeof(*poh));
|
||||
rctx->tx.tot_len = sizeof(*poh);
|
||||
|
||||
switch (poh->cmd) {
|
||||
case OPENPCD_CMD_WRITE_REG:
|
||||
|
|
Loading…
Reference in New Issue