--- a/lib/rc-switch.c Mon May 05 10:33:26 2014 +0200 +++ b/lib/rc-switch.c Mon May 05 13:49:53 2014 +0200 @@ -33,7 +33,7 @@ unsigned int rcReceivedDelay = 0; unsigned int rcReceivedProtocol = 0; int rcReceiveTolerance = 60; -int rcReceiverInterrupt = -1; +int rcReceiverInterruptPin = -1; unsigned int timings[RCSWITCH_MAX_CHANGES]; int rcTransmitterPin = -1; @@ -529,10 +529,10 @@ void transmit(int nHighPulses, int nLowPulses) { bool disabled_Receive = false; - int nReceiverInterrupt_backup = rcReceiverInterrupt; + int nReceiverInterrupt_backup = rcReceiverInterruptPin; if (rcTransmitterPin != -1) { - if (rcReceiverInterrupt != -1) { + if (rcReceiverInterruptPin != -1) { disableReceive(); disabled_Receive = true; } @@ -658,16 +658,16 @@ /* * Enable receiving data */ -void enableReceiveIRQ(int interrupt) { - rcReceiverInterrupt = interrupt; +void enableReceiveIRQ(int Pin) { + rcReceiverInterruptPin = Pin; enableReceive(); } void enableReceive(void) { - if (rcReceiverInterrupt != -1) { + if (rcReceiverInterruptPin != -1) { rcReceivedValue = 0; rcReceivedBitlength = 0; - wiringPiISR(rcReceiverInterrupt, INT_EDGE_BOTH, &handleInterrupt); + wiringPiISR(rcReceiverInterruptPin, INT_EDGE_BOTH, &handleInterrupt); } } @@ -678,7 +678,7 @@ */ void disableReceive() { // wiringPi disable interrupts ??? - rcReceiverInterrupt = -1; + rcReceiverInterruptPin = -1; }