diff --git a/subsys/usb/usb_device.c b/subsys/usb/usb_device.c index 631f06c2d1aa9a..16d75fa15234b3 100644 --- a/subsys/usb/usb_device.c +++ b/subsys/usb/usb_device.c @@ -519,6 +519,10 @@ static bool usb_set_configuration(u8_t config_index, u8_t alt_setting) case DESC_CONFIGURATION: /* remember current configuration index */ cur_config = p[CONF_DESC_bConfigurationValue]; + if (cur_config == config_index) { + found = true; + } + break; case DESC_INTERFACE: