1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-04 23:23:43 +02:00

atusb/fw/usb/dfu.c (dfu): lowered bwPollTimeout from 1 s to 100 ms and explained why

This commit is contained in:
Werner Almesberger 2011-05-10 08:32:12 -03:00
parent 27c1c7ba89
commit fc1a334bf6

View File

@ -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 */
};