From 3508badfd5ac3d10cd516be6a0440c2c41741254 Mon Sep 17 00:00:00 2001 From: Dirk Bajohr Date: Thu, 10 Aug 2017 04:47:40 +0200 Subject: [PATCH 1/2] GPIO customizable --- daemon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon.cpp b/daemon.cpp index c92ef94..5afd036 100644 --- a/daemon.cpp +++ b/daemon.cpp @@ -60,7 +60,7 @@ int main(int argc, char* argv[]) { mySwitch = RCSwitch(); mySwitch.setPulseLength(300); usleep(50000); - mySwitch.enableTransmit(0); + mySwitch.enableTransmit(GPIO_PIN); nPlugs=1280; int nState[nPlugs]; nTimeout=0; From fb980ae2f25f042d1c58c6d39bf9cbea04eccb80 Mon Sep 17 00:00:00 2001 From: Dirk Bajohr Date: Thu, 10 Aug 2017 04:48:45 +0200 Subject: [PATCH 2/2] GPIO Pin customisable --- daemon.h | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon.h b/daemon.h index 30324dd..a9b2597 100644 --- a/daemon.h +++ b/daemon.h @@ -7,6 +7,7 @@ int nAction; int nPlugs; int nTimeout; int PORT = 11337; +int GPIO_PIN = 0; void error(const char *msg); int getAddrElro(const char* nGroup, int nSwitchNumber);