RCSwitch.cpp: In member function 'void RCSwitch::enableReceive()': RCSwitch.cpp:448:43: error: 'INT_EDGE_BOTH' was not declared in this scope wiringPiISR(this->nReceiverInterrupt, INT_EDGE_BOTH, &handleInterrupt);
RCSwitch.cpp: In static member function 'static void RCSwitch::handleInterrupt()': RCSwitch.cpp:568:22: error: 'micros' was not declared in this scope long time = micros();
You can update the code: https://github.com/r10r/rcswitch-pi/blob/master/RCSwitch.cpp
Thanks!
RCSwitch.cpp: In member function 'void RCSwitch::enableReceive()': RCSwitch.cpp:448:43: error: 'INT_EDGE_BOTH' was not declared in this scope wiringPiISR(this->nReceiverInterrupt, INT_EDGE_BOTH, &handleInterrupt);RCSwitch.cpp: In static member function 'static void RCSwitch::handleInterrupt()': RCSwitch.cpp:568:22: error: 'micros' was not declared in this scope long time = micros();You can update the code: https://github.com/r10r/rcswitch-pi/blob/master/RCSwitch.cpp
Thanks!