diff options
| author | (no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2006-07-23 14:33:32 +0000 | 
|---|---|---|
| committer | (no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> | 2006-07-23 14:33:32 +0000 | 
| commit | da75ea59487074d550e027c1df2bb64efae43a5b (patch) | |
| tree | 779d3450132dfeaec994583e318bdabcfafa2a45 | |
| parent | 2c303468af651243069578212c3033634031af13 (diff) | |
fix length of returned usb packet
git-svn-id: https://svn.openpcd.org:2342/trunk@20 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
| -rw-r--r-- | openpcd/firmware/src/main.c | 1 | 
1 files changed, 1 insertions, 0 deletions
| 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: | 
