mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-22 23:25:54 +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 = {
|
struct dfu dfu = {
|
||||||
OK,
|
OK, /* bStatus */
|
||||||
LE(1000), 0,
|
LE(100), 0, /* bwPollTimeout, 100 ms */
|
||||||
dfuIDLE,
|
dfuIDLE, /* bState */
|
||||||
0,
|
0, /* iString */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user