Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Lilnija_29012017 NucleoF042K6_IRReceiver
Revision 4:5e46ae042bc7, committed 2016-01-23
- 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 ;