wjwwood/serial — pull request #41 by mikepurvis (2013-10-09 15:32:43+00:00)
Title: Fix aliasing of stopbits_one_point_five

see: http://stackoverflow.com/questions/11412516/enum-why-can-two-different-element-have-the-same-interger-value

I don't believe this is intentional—I ran into it when a switch statement wouldn't compile due to duplicate cases.

I see that in impl/unix, 1.5 and 2 are the same, whereas in impl/win, there's explicit support for 1.5—except that because of how this enum is/was set up, it would never actually see the stopbits_two codepath.

Some quick research suggests that 1.5 stopbits was historically used _5 bit data_, and POSIX has never supported it. Given this legacy, maybe it should just be removed altogether? If so, let me know and I'll update the PR.