From da75ea59487074d550e027c1df2bb64efae43a5b Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> Date: Sun, 23 Jul 2006 14:33:32 +0000 Subject: fix length of returned usb packet git-svn-id: https://svn.openpcd.org:2342/trunk@20 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- openpcd/firmware/src/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/openpcd/firmware/src/main.c b/openpcd/firmware/src/main.c index 0860293..45f4aa7 100644 --- a/openpcd/firmware/src/main.c +++ b/openpcd/firmware/src/main.c @@ -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: -- cgit v1.2.3