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; 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);