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

Drop "SerialComManager.BAUDRATE baudRate" parameter of SerialComManager.configureComPortData() function #46

Open
powerbroker opened this issue Sep 3, 2021 · 3 comments

Comments

@powerbroker
Copy link

The "SerialComManager.BAUDRATE baudRate" parameter duplicates the "int custBaud" parameter. Nothing prevents from invoking
SerialComManager.configureComPortData() with e.g. BAUDRATE.B115200.getValue() as "custBaud" value.

The first scenario of using configureComPortData() which comes into mind is:

DATABITS db = DATABITS.DB_8;
STOPBITS sb = STOPBITS.SB_1;
PARITY p = PARITY.P_NONE;
int userTypedBaudRate;

// Some code affecting db, sb, p and userTypedBaudRate here

...configureComPortData(handle, db, sb, p, BAUDRATE.BCUSTOM, userTypedBaudRate);
@RishiGupta12
Copy link
Owner

RishiGupta12 commented Sep 4, 2021 via email

@powerbroker
Copy link
Author

powerbroker commented Sep 9, 2021 via email

@powerbroker
Copy link
Author

powerbroker commented Sep 9, 2021 via email

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

No branches or pull requests

2 participants