Infrared remote library for Arduino: send and receive infrared signals with multiple protocols Port from Arduino-IRremote https://github.com/z3t0/Arduino-IRremote
Diff: irRecv.cpp
- Revision:
- 4:5e46ae042bc7
- Parent:
- 3:17440cf7ab90
- Child:
- 8:0650578366fd
--- a/irRecv.cpp Sat Jan 23 15:09:34 2016 +0000 +++ b/irRecv.cpp Sat Jan 23 15:24:18 2016 +0000 @@ -122,7 +122,7 @@ // bool IRrecv::isIdle ( ) { - return (irparams.rcvstate == STATE_IDLE || irparams.rcvstate == STATE_STOP) ? true : false; + return irparams.rcvstate == STATE_IDLE || irparams.rcvstate == STATE_STOP; } //+============================================================================= @@ -169,7 +169,7 @@ long IRrecv::decodeHash (decode_results *results) { - long hash = FNV_BASIS_32; + unsigned long hash = FNV_BASIS_32; // Require at least 6 samples to prevent triggering on noise if (results->rawlen < 6) return false ;