mirror of
https://github.com/Theaninova/Arduino-IRremote.git
synced 2026-01-07 21:52:48 +00:00
Working on sendRaw Bug
This commit is contained in:
@@ -2,12 +2,12 @@
|
|||||||
#include "IRremoteInt.h"
|
#include "IRremoteInt.h"
|
||||||
|
|
||||||
//+=============================================================================
|
//+=============================================================================
|
||||||
void IRsend::sendRaw (unsigned int buf[], int len, int hz)
|
void IRsend::sendRaw (unsigned int buf[], unsigned char len, unsigned char hz)
|
||||||
{
|
{
|
||||||
// Set IR carrier frequency
|
// Set IR carrier frequency
|
||||||
enableIROut(hz);
|
enableIROut(hz);
|
||||||
|
|
||||||
for (int i = 0; i < len; i++) {
|
for (unsigned char i = 0; i < len; i++) {
|
||||||
if (i & 1) space(buf[i]) ;
|
if (i & 1) space(buf[i]) ;
|
||||||
else mark (buf[i]) ;
|
else mark (buf[i]) ;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user