Skip to content

Commit

Permalink
Merge branch 'fix-usb_bulk_msg_timedout' of github.com:masnagam/px4_d…
Browse files Browse the repository at this point in the history
…rv into develop
  • Loading branch information
tsukumijima committed Jan 17, 2024
2 parents 260940c + bf5ff09 commit f9e69c6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions driver/itedtv_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ static int itedtv_usb_ctrl_tx(struct itedtv_bus *bus, void *buf, int len)
buf, len,
&rlen, bus->usb.ctrl_timeout);

if (ret) {
dev_err(bus->dev,
"itedtv_usb_ctrl_tx: usb_bulk_msg() failed. (ret: %d)\n",
ret);
}

usleep_range(1000, 1100);

return ret;
Expand All @@ -77,6 +83,12 @@ static int itedtv_usb_ctrl_rx(struct itedtv_bus *bus, void *buf, int *len)
buf, *len,
&rlen, bus->usb.ctrl_timeout);

if (ret) {
dev_err(bus->dev,
"itedtv_usb_ctrl_rx: usb_bulk_msg() failed. (ret: %d)\n",
ret);
}

*len = rlen;

usleep_range(1000, 1100);
Expand Down

0 comments on commit f9e69c6

Please sign in to comment.