Skip to content

Commit

Permalink
Merge pull request #25 from isolution-de/master
Browse files Browse the repository at this point in the history
GPIO customisable for daemon
  • Loading branch information
tillepille committed Dec 16, 2017
2 parents fea210a + fb980ae commit f5732a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion daemon.cpp
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions daemon.h
Expand Up @@ -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);
Expand Down

0 comments on commit f5732a5

Please sign in to comment.