As Colin O'Flynn wrote:

> There is some current code in there, which as Dean mentioned is just not
> triggered. Would it seem cleaner to rearrange this such that if attempting
> to read from the endpoint fails, we switch to heuristic mode

No, no trial & error, please.

If at all, then apply a proper heuristics straight from the beginning.
For the Atmel tools, the EP numbers are well defined, so checking the
algorithm against these definitions should be easy.  For the
remainder, the algorithm must be clever enough to always detect the
correct EP setup situation.

The goal must be to have no hardcoded EP numbers in the code anymore.

-- 
cheers, Joerg               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/
Never trust an operating system you don't have sources for. ;-)

_______________________________________________
avrdude-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/avrdude-dev

Reply via email to