pavel-a / usb-relay-hid

Software for USB-connected relays with HID interface. See the WIKI for more info.
http://vusb.wikidot.com/project:driver-less-usb-relays-hid-interface
242 stars 105 forks source link

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

Open mjp66 opened 3 weeks ago

mjp66 commented 3 weeks ago

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