diff options
-rw-r--r-- | usbdrv/Changelog.txt | 4 | ||||
-rw-r--r-- | usbdrv/usbdrv.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/usbdrv/Changelog.txt b/usbdrv/Changelog.txt index 8b657bb..7674ebc 100644 --- a/usbdrv/Changelog.txt +++ b/usbdrv/Changelog.txt @@ -243,4 +243,6 @@ Scroll down to the bottom to see the most recent changes. used to supply the data. Fixed this bug. [Thanks to Alexander Neumann!] - In hiddata.c (example code for sending/receiving data over HID), use USB_RECIP_DEVICE instead of USB_RECIP_INTERFACE for control transfers so - that we need not claim the interface. + that we need not claim the interface. + - in usbPoll() loop 20 times polling for RESET state instead of 10 times. + This accounts for the higher clock rates we now support. diff --git a/usbdrv/usbdrv.c b/usbdrv/usbdrv.c index e6c8c19..5cbfbe8 100644 --- a/usbdrv/usbdrv.c +++ b/usbdrv/usbdrv.c @@ -586,7 +586,7 @@ uchar i; usbBuildTxBlock(); } } - for(i = 10; i > 0; i--){ + for(i = 20; i > 0; i--){ uchar usbLineStatus = USBIN & USBMASK; if(usbLineStatus != 0) /* SE0 has ended */ break; |