added isIdle Method for receiving, #48

This commit is contained in:
Rafi Khan
2015-07-23 19:39:46 -06:00
parent 67330bb22c
commit 07236dd6d5
3 changed files with 12 additions and 5 deletions

View File

@@ -133,6 +133,13 @@ void IRrecv::blink13 (int blinkflag)
if (blinkflag) pinMode(BLINKLED, OUTPUT) ;
}
//+=============================================================================
// Return if receiving new IR signals
//
bool IRrecv::isIdle ( )
{
return (irparams.rcvstate == STATE_IDLE || irparams.rcvstate == STATE_STOP) ? true : false;
}
//+=============================================================================
// Restart the ISR state machine
//