MCPcopy Create free account
hub / github.com/SmingHub/Sming / disableReceive

Method disableReceive

Sming/Libraries/RCSwitch/RCSwitch.cpp:628–633  ·  view source on GitHub ↗

* Disable receiving data */

Source from the content-addressed store, hash-verified

626 * Disable receiving data
627 */
628void 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
635bool RCSwitch::available() {
636 return RCSwitch::nReceivedValue != 0;

Callers 1

transmitMethod · 0.95

Calls 1

detachInterruptFunction · 0.50

Tested by

no test coverage detected