summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--openpcd/firmware/src/main.c1
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:
personal git repositories of Harald Welte. Your mileage may vary