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

Believe there are typo(s) in a commandline printf #48

Open
mjp66 opened this issue Jun 14, 2024 · 0 comments
Open

Believe there are typo(s) in a commandline printf #48

mjp66 opened this issue Jun 14, 2024 · 0 comments

Comments

@mjp66
Copy link

mjp66 commented Jun 14, 2024

Thanks for some great code.
I recently bought a 2 channel USB relay board which identified itself as a 4 channel board.
This caused me to see / find the following code, which I believe has a mistake in it.
commandline/usbrelay-cmd.c, line 282:
case 4:
printf("Board ID=[%5.5s] State: R1=%s R3=%s R1=%s R4=%s\n",
&buffer[1], onoff(0), onoff(1), onoff(2), onoff(3) );
Where the labels R1, R3, R1, R4 should probably be R1, R2, R3, R4.

Thanks,
-Mike

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

1 participant