From a30a069ed8e75f14b520b407b07a3f137b87ef1c Mon Sep 17 00:00:00 2001
From: NIIBE Yutaka <gniibe@fsij.org>
Date: Tue, 15 Sep 2015 10:39:36 +0900
Subject: Version 0.10

---
 example-cdc/usb_stm32f103.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'example-cdc')

diff --git a/example-cdc/usb_stm32f103.c b/example-cdc/usb_stm32f103.c
index c213d6a..ac96dda 100644
--- a/example-cdc/usb_stm32f103.c
+++ b/example-cdc/usb_stm32f103.c
@@ -727,7 +727,7 @@ static int std_set_interface (uint8_t req, struct control_info *detail)
 
   if ((req & REQUEST_DIR) == 1 || rcp != INTERFACE_RECIPIENT
       || detail->len != 0 || (detail->index >> 8) != 0
-      || (detail->value >> 8) != 0 || dev_p->current_configuration != 0)
+      || (detail->value >> 8) != 0 || dev_p->current_configuration == 0)
     return USB_UNSUPPORT;
 
   return usb_cb_interface (USB_SET_INTERFACE, detail);
-- 
cgit v1.2.3