diff options
author | tmk <nobody@nowhere> | 2012-06-30 14:56:24 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2012-06-30 14:56:24 +0900 |
commit | fca518f90dfc7f72132ff7950b000cfbd5709807 (patch) | |
tree | 1c61e7b91f1f4986232a1fdca421b3346f8a9431 /protocol/vusb/main.c | |
parent | 76033dcd892a115240c5a990e5643cd53acbca87 (diff) | |
parent | 2769f09d11a4c45362f2e6137f2469d057d8757e (diff) |
Merge branch 'lufa'
Diffstat (limited to 'protocol/vusb/main.c')
-rw-r--r-- | protocol/vusb/main.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/protocol/vusb/main.c b/protocol/vusb/main.c index 1bf9035b39..3deb82238a 100644 --- a/protocol/vusb/main.c +++ b/protocol/vusb/main.c @@ -90,10 +90,15 @@ int main(void) } } #endif - if (!suspended) + if (!suspended) { usbPoll(); - keyboard_proc(); - if (!suspended) + + // TODO: configuration process is incosistent. it sometime fails. + // To prevent failing to configure NOT scan keyboard during configuration + if (usbConfiguration && usbInterruptIsReady()) { + keyboard_proc(); + } vusb_transfer_keyboard(); + } } } |