Follow-up Comment #2, patch #10154 (project avrdude): It also looks a bit abusive to add flags to the setspeed() method. If there was a new setcflags() method then it could just be not called for all drives that don't need to change the cflags, and none of the drivers would need to change at all (default would apply if setcflags() is not called).
On a tangent - if thinking about overhauls, getting rid of the serdev (and serial_recv_timeout) globals would be nice. The library relies on the serdev type matching the `union file descriptor *fd` that is passed around, but an object oriented approach would just have *fd knowing what type it was. _______________________________________________________ Reply to this item at: <https://savannah.nongnu.org/patch/?10154> _______________________________________________ Message sent via Savannah https://savannah.nongnu.org/