mirror of
https://github.com/Theaninova/Arduino-IRremote.git
synced 2025-12-11 08:56:14 +00:00
wrapped getRCLevel function with #if DECODE_RC5/6
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
// t1 is the time interval for a single bit in microseconds.
|
// t1 is the time interval for a single bit in microseconds.
|
||||||
// Returns -1 for error (measured time interval is not a multiple of t1).
|
// Returns -1 for error (measured time interval is not a multiple of t1).
|
||||||
//
|
//
|
||||||
|
#if (DECODE_RC5 || DECODE_RC6)
|
||||||
int IRrecv::getRClevel (decode_results *results, int *offset, int *used, int t1)
|
int IRrecv::getRClevel (decode_results *results, int *offset, int *used, int t1)
|
||||||
{
|
{
|
||||||
int width;
|
int width;
|
||||||
@@ -37,6 +38,7 @@ int IRrecv::getRClevel (decode_results *results, int *offset, int *used, int
|
|||||||
|
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
// RRRR CCCC 55555
|
// RRRR CCCC 55555
|
||||||
|
|||||||
Reference in New Issue
Block a user