Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show an error when trying to use unsupported baudrate #63

Merged
merged 3 commits into from
Aug 13, 2020
Merged

Show an error when trying to use unsupported baudrate #63

merged 3 commits into from
Aug 13, 2020

Conversation

KrystianD
Copy link
Contributor

@KrystianD KrystianD commented Aug 11, 2020

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.

@KrystianD KrystianD changed the title Feat baudrate Show an error when trying to use unsupported baudrate Aug 12, 2020
@3cky 3cky merged commit c6301d4 into 3cky:master Aug 13, 2020
@3cky
Copy link
Owner

3cky commented Aug 13, 2020

Thanks for PRs!

@3cky
Copy link
Owner

3cky commented Aug 13, 2020

Also please note ad58141.

@KrystianD KrystianD deleted the feat-baudrate branch August 13, 2020 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants