summaryrefslogtreecommitdiffstats
path: root/tv/5pkgs/rpi/433Utils/RPi_utils.codesend.codestring.patch
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2023-09-28 23:22:59 +0200
committermakefu <github@syntax-fehler.de>2023-09-28 23:22:59 +0200
commit2db6777b7caa37477c5ffddd99d69b2f2c6d9d7f (patch)
treea72905fad73089b7ab295a948eda837bad013362 /tv/5pkgs/rpi/433Utils/RPi_utils.codesend.codestring.patch
parent29d72c898d674d2c18fc0f4a76b5e623de0c3dfe (diff)
parent0215fbddccf206801d94f52518cbfec91ccc3cc5 (diff)
Merge remote-tracking branch 'lass/master'
Diffstat (limited to 'tv/5pkgs/rpi/433Utils/RPi_utils.codesend.codestring.patch')
-rw-r--r--tv/5pkgs/rpi/433Utils/RPi_utils.codesend.codestring.patch24
1 files changed, 0 insertions, 24 deletions
diff --git a/tv/5pkgs/rpi/433Utils/RPi_utils.codesend.codestring.patch b/tv/5pkgs/rpi/433Utils/RPi_utils.codesend.codestring.patch
deleted file mode 100644
index 447e42f1d..000000000
--- a/tv/5pkgs/rpi/433Utils/RPi_utils.codesend.codestring.patch
+++ /dev/null
@@ -1,24 +0,0 @@
---- a/RPi_utils/codesend.cpp
-+++ b/RPi_utils/codesend.cpp
-@@ -40,18 +40,18 @@ int main(int argc, char *argv[]) {
- }
-
- // Change protocol and pulse length accroding to parameters
-- int code = atoi(argv[1]);
-+ const char *code = argv[1];
- if (argc >= 3) protocol = atoi(argv[2]);
- if (argc >= 4) pulseLength = atoi(argv[3]);
-
- if (wiringPiSetup () == -1) return 1;
-- printf("sending code[%i]\n", code);
-+ printf("sending code[%s]\n", code);
- RCSwitch mySwitch = RCSwitch();
- if (protocol != 0) mySwitch.setProtocol(protocol);
- if (pulseLength != 0) mySwitch.setPulseLength(pulseLength);
- mySwitch.enableTransmit(PIN);
-
-- mySwitch.send(code, 24);
-+ mySwitch.send(code);
-
- return 0;
-