mirror of
https://github.com/Theaninova/Arduino-IRremote.git
synced 2026-01-03 12:02:56 +00:00
Whitespace cleanup on for() loops
This commit is contained in:
@@ -1129,7 +1129,7 @@ long IRrecv::decodeHash (decode_results *results)
|
|||||||
// Require at least 6 samples to prevent triggering on noise
|
// Require at least 6 samples to prevent triggering on noise
|
||||||
if (results->rawlen < 6) return ERR ;
|
if (results->rawlen < 6) return ERR ;
|
||||||
long hash = FNV_BASIS_32;
|
long hash = FNV_BASIS_32;
|
||||||
for (int i = 1; i+2 < results->rawlen; i++) {
|
for (int i = 1; (i + 2) < results->rawlen; i++) {
|
||||||
int value = compare(results->rawbuf[i], results->rawbuf[i+2]);
|
int value = compare(results->rawbuf[i], results->rawbuf[i+2]);
|
||||||
// Add value into the hash
|
// Add value into the hash
|
||||||
hash = (hash * FNV_PRIME_32) ^ value;
|
hash = (hash * FNV_PRIME_32) ^ value;
|
||||||
|
|||||||
Reference in New Issue
Block a user