* Disable receiving data */
| 626 | * Disable receiving data |
| 627 | */ |
| 628 | void RCSwitch::disableReceive() { |
| 629 | #if not defined(RaspberryPi) // Arduino |
| 630 | detachInterrupt(this->nReceiverInterrupt); |
| 631 | #endif // For Raspberry Pi (wiringPi) you can't unregister the ISR |
| 632 | this->nReceiverInterrupt = -1; |
| 633 | } |
| 634 | |
| 635 | bool RCSwitch::available() { |
| 636 | return RCSwitch::nReceivedValue != 0; |
no test coverage detected