We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31c0ea4 commit 325db5fCopy full SHA for 325db5f
RPi_utils/codesend.cpp
@@ -47,8 +47,8 @@ int main(int argc, char *argv[]) {
47
if (wiringPiSetup () == -1) return 1;
48
printf("sending code[%i]\n", code);
49
RCSwitch mySwitch = RCSwitch();
50
- if (protocol != 0) mySwitch.setProtocol(protocol);
51
if (pulseLength != 0) mySwitch.setPulseLength(pulseLength);
+ if (protocol != 0) mySwitch.setProtocol(protocol);
52
mySwitch.enableTransmit(PIN);
53
54
mySwitch.send(code, 24);
0 commit comments