mirror of
https://github.com/Theaninova/Arduino-IRremote.git
synced 2025-12-13 18:06:15 +00:00
Commenting
This commit is contained in:
12
IRremote.cpp
12
IRremote.cpp
@@ -24,15 +24,9 @@
|
||||
# include "IRremoteInt.h"
|
||||
#undef IR_GLOBAL
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// These versions of MATCH, MATCH_MARK, and MATCH_SPACE are only for debugging.
|
||||
// To use them, set DEBUG to 1 in IRremoteInt.h
|
||||
// (Normally macros are used for efficiency)
|
||||
// ...but every time i reduce these functions down to macros, the decoders stop working!!??
|
||||
|
||||
//+=============================================================================
|
||||
// The match functions were (apparently) originally MACROs to improve code speed
|
||||
// (although this would have bloated the code size) hence the names being CAPS
|
||||
// (although this would have bloated the code) hence the names being CAPS
|
||||
// A later release implemented debug output and so they needed to be converted
|
||||
// to functions.
|
||||
// I tried to implement a dual-compile mode (DEBUG/non-DEBUG) but for some
|
||||
@@ -56,7 +50,7 @@ int MATCH (int measured, int desired)
|
||||
}
|
||||
|
||||
//+========================================================
|
||||
// Marks tend to be 100us too long when received due to sensor lag.
|
||||
// Due to sensor lag, when received, Marks tend to be 100us too long
|
||||
//
|
||||
int MATCH_MARK (int measured_ticks, int desired_us)
|
||||
{
|
||||
@@ -76,7 +70,7 @@ int MATCH_MARK (int measured_ticks, int desired_us)
|
||||
}
|
||||
|
||||
//+========================================================
|
||||
// Spaces tend to be 100us too short when received due to sensor lag.
|
||||
// Due to sensor lag, when received, Spaces tend to be 100us too short
|
||||
//
|
||||
int MATCH_SPACE (int measured_ticks, int desired_us)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user