From 776b25330204543c3b16701b8904405f3000f68a Mon Sep 17 00:00:00 2001 From: rhoudin Date: Sun, 18 Oct 2015 23:22:58 +0200 Subject: [PATCH] Update send.cpp --- RPi_utils/send.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/RPi_utils/send.cpp b/RPi_utils/send.cpp index 076e77c..ed66bc6 100644 --- a/RPi_utils/send.cpp +++ b/RPi_utils/send.cpp @@ -22,6 +22,7 @@ int main(int argc, char *argv[]) { if (wiringPiSetup () == -1) return 1; printf("sending systemCode[%s] unitCode[%i] command[%i]\n", systemCode, unitCode, command); RCSwitch mySwitch = RCSwitch(); + if (argv[4] != NULL) mySwitch.setPulseLength(atoi(argv[4])); mySwitch.enableTransmit(PIN); switch(command) {