Fix type problem
This commit is contained in:
parent
607c982450
commit
7c45e2ca41
|
@ -51,7 +51,7 @@ class IRSenderBitBang : public IRSender
|
||||||
void mark(int markLength);
|
void mark(int markLength);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
uint _halfPeriodicTime;
|
int _halfPeriodicTime;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -23,7 +23,7 @@ void IRSenderBitBang::mark(int markLength)
|
||||||
{
|
{
|
||||||
long beginning = micros();
|
long beginning = micros();
|
||||||
|
|
||||||
while(micros() - beginning < markLength){
|
while((int)(micros() - beginning) < markLength){
|
||||||
digitalWrite(_pin, HIGH);
|
digitalWrite(_pin, HIGH);
|
||||||
delayMicroseconds(_halfPeriodicTime);
|
delayMicroseconds(_halfPeriodicTime);
|
||||||
digitalWrite(_pin, LOW);
|
digitalWrite(_pin, LOW);
|
||||||
|
|
Loading…
Reference in New Issue