Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions subsys/usb/host/usbh_shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ LOG_MODULE_REGISTER(usbh_shell, CONFIG_USBH_LOG_LEVEL);

USBH_CONTROLLER_DEFINE(uhs_ctx, DEVICE_DT_GET(DT_NODELABEL(zephyr_uhc0)));
static struct usb_device *udev;
const static struct shell *ctx_shell;
static uint8_t vreq_test_buf[1024];

static void print_dev_desc(const struct shell *sh,
Expand Down Expand Up @@ -195,7 +194,7 @@ static int cmd_desc_string(const struct shell *sh,
if (err) {
shell_print(sh, "host: Failed to request configuration descriptor");
} else {
shell_hexdump(ctx_shell, buf->data, buf->len);
shell_hexdump(sh, buf->data, buf->len);
}

usbh_xfer_buf_free(udev, buf);
Expand Down Expand Up @@ -426,7 +425,6 @@ static int cmd_usbh_init(const struct shell *sh,
{
int err;

ctx_shell = sh;
udev = usbh_device_get_any(&uhs_ctx);

err = usbh_init(&uhs_ctx);
Expand Down
Loading