mirror of
https://github.com/Theaninova/Arduino-IRremote.git
synced 2026-01-22 09:12:38 +00:00
Fix some minor problems in boarddefs.h and IRremote.cpp (#505)
* Removed some trailing spaces in IRremote.cpp. * IRremote.cpp: fix some compiler warnings (-Wall -Wextra). Remark: braces necessitated by the macro nature of DBG_PRINTLN. * boarddefs.h: removed spurious #. Nuked trailing spaces. Credits: bengtmartensson
This commit is contained in:
committed by
Rafi Khan
parent
4eb95a3272
commit
7245efd2f5
@@ -52,10 +52,11 @@ int MATCH (int measured, int desired)
|
||||
DBG_PRINT(TICKS_HIGH(desired), DEC);
|
||||
|
||||
bool passed = ((measured >= TICKS_LOW(desired)) && (measured <= TICKS_HIGH(desired)));
|
||||
if (passed)
|
||||
if (passed) {
|
||||
DBG_PRINTLN(F("?; passed"));
|
||||
else
|
||||
} else {
|
||||
DBG_PRINTLN(F("?; FAILED"));
|
||||
}
|
||||
return passed;
|
||||
}
|
||||
|
||||
@@ -78,10 +79,11 @@ int MATCH_MARK (int measured_ticks, int desired_us)
|
||||
|
||||
bool passed = ((measured_ticks >= TICKS_LOW (desired_us + MARK_EXCESS))
|
||||
&& (measured_ticks <= TICKS_HIGH(desired_us + MARK_EXCESS)));
|
||||
if (passed)
|
||||
if (passed) {
|
||||
DBG_PRINTLN(F("?; passed"));
|
||||
else
|
||||
} else {
|
||||
DBG_PRINTLN(F("?; FAILED"));
|
||||
}
|
||||
return passed;
|
||||
}
|
||||
|
||||
@@ -104,10 +106,11 @@ int MATCH_SPACE (int measured_ticks, int desired_us)
|
||||
|
||||
bool passed = ((measured_ticks >= TICKS_LOW (desired_us - MARK_EXCESS))
|
||||
&& (measured_ticks <= TICKS_HIGH(desired_us - MARK_EXCESS)));
|
||||
if (passed)
|
||||
if (passed) {
|
||||
DBG_PRINTLN(F("?; passed"));
|
||||
else
|
||||
} else {
|
||||
DBG_PRINTLN(F("?; FAILED"));
|
||||
}
|
||||
return passed;
|
||||
}
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
# undef HAS_AVR_INTERRUPT_H
|
||||
|
||||
// Sending not implemented
|
||||
# undef SENDING_SUPPORTED#
|
||||
# undef SENDING_SUPPORTED
|
||||
|
||||
// Supply own enbleIRIn
|
||||
# undef USE_DEFAULT_ENABLE_IR_IN
|
||||
|
||||
Reference in New Issue
Block a user