Fix reGNUal upgrade

This commit is contained in:
NIIBE Yutaka
2016-05-19 17:34:38 +09:00
parent d68bee21e5
commit 1e004bec78
3 changed files with 14 additions and 1 deletions

View File

@@ -1370,6 +1370,7 @@ ccid_usb_reset (void)
void *
ccid_thread (void *arg)
{
extern uint32_t bDeviceState;
chopstx_intr_t interrupt;
uint32_t timeout;
@@ -1511,6 +1512,13 @@ ccid_thread (void *arg)
c->application = 0;
}
/* Loading reGNUal. */
while (bDeviceState != UNCONNECTED)
{
chopstx_poll (NULL, 1, &interrupt);
usb_interrupt_handler ();
}
return NULL;
}