Skip to content
Permalink
Browse files

usb: netusb: cdc_eem: Fix Interface select

Parameter of set_interface_status is no more the interface index
but a pointer to interface descriptor.

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
  • Loading branch information...
Loic Poulain authored and nashif committed Jun 11, 2019
1 parent 7428f9c commit d79bbc6d4d611cb9e3de4ff5dd1194b52055150f
Showing with 5 additions and 2 deletions.
  1. +5 −2 subsys/usb/class/netusb/function_eem.c
@@ -221,11 +221,14 @@ static struct netusb_function eem_function = {
.send_pkt = eem_send,
};

static inline void eem_status_interface(const u8_t *iface)
static inline void eem_status_interface(const u8_t *desc)
{
const struct usb_if_descriptor *if_desc = (void *)desc;
u8_t iface_num = if_desc->bInterfaceNumber;

LOG_DBG("");

if (*iface != eem_get_first_iface_number()) {
if (iface_num != eem_get_first_iface_number()) {
return;
}

0 comments on commit d79bbc6

Please sign in to comment.
You can’t perform that action at this time.