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