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 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