usb bug fix

This commit is contained in:
NIIBE Yutaka 2015-09-15 10:00:09 +09:00
parent deeb8aad1c
commit 1f9e8ca77f
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2015-09-15 Niibe Yutaka <gniibe@fsij.org> 2015-09-15 Niibe Yutaka <gniibe@fsij.org>
* src/usb_stm32f103.c (std_set_interface): Bug fix for conf.
* src/gnuk.ld.in (__process3_stack_size__): Increase stack size of * src/gnuk.ld.in (__process3_stack_size__): Increase stack size of
GPG thread. GPG thread.
(__main_stack_size__): Decrease stack size of exception handlers. (__main_stack_size__): Decrease stack size of exception handlers.

View File

@ -727,7 +727,7 @@ static int std_set_interface (uint8_t req, struct control_info *detail)
if ((req & REQUEST_DIR) == 1 || rcp != INTERFACE_RECIPIENT if ((req & REQUEST_DIR) == 1 || rcp != INTERFACE_RECIPIENT
|| detail->len != 0 || (detail->index >> 8) != 0 || 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_UNSUPPORT;
return usb_cb_interface (USB_SET_INTERFACE, detail); return usb_cb_interface (USB_SET_INTERFACE, detail);