Taguchi Yuuki / IRremote

Dependents:   Lilnija_29012017 NucleoF042K6_IRReceiver

Files at this revision

API Documentation at this revision

Comitter:
yuhki50
Date:
Sat Jan 23 15:24:18 2016 +0000
Parent:
3:17440cf7ab90
Child:
5:a4dfe2bb80b9
Commit message:
refactoring

Changed in this revision

irRecv.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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 ;