I had bad times trying to figure out why baudrate I use (500000) is not working with my device while it was working well with other modbus clients. With use of logic analyzer, it turned out mbusd used the default baudrate as 500000 was not supported. I think it would be worth to report an error to the user that he selected (via -s) an unsupported baudrate rather than silently revert to the default one (19200).
0 in ttyspeed is now treated as a marker of default baudrate which is then replaced with the default baudrate in tty_transpeed function. default clause just reports an error that unsupported baudrate was selected.
I had bad times trying to figure out why baudrate I use (500000) is not working with my device while it was working well with other modbus clients. With use of logic analyzer, it turned out mbusd used the default baudrate as 500000 was not supported. I think it would be worth to report an error to the user that he selected (via
-s
) an unsupported baudrate rather than silently revert to the default one (19200).0
in ttyspeed is now treated as a marker of default baudrate which is then replaced with the default baudrate intty_transpeed
function.default
clause just reports an error that unsupported baudrate was selected.