mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-26 04:00:38 +02:00
atusb/fw/usb/dfu.c (dfu): lowered bwPollTimeout from 1 s to 100 ms and explained why
This commit is contained in:
parent
27c1c7ba89
commit
fc1a334bf6
@ -94,11 +94,16 @@ static const uint8_t functional_descriptor[] = {
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
* The worst-case activity would be flashing a one page and erasing another
|
||||
* one, would should take less than 10 ms. A 100 ms timeout ought to be plenty.
|
||||
*/
|
||||
|
||||
struct dfu dfu = {
|
||||
OK,
|
||||
LE(1000), 0,
|
||||
dfuIDLE,
|
||||
0,
|
||||
OK, /* bStatus */
|
||||
LE(100), 0, /* bwPollTimeout, 100 ms */
|
||||
dfuIDLE, /* bState */
|
||||
0, /* iString */
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user