Fix type problem

This commit is contained in:
ToniA 2016-01-28 19:35:44 +02:00
parent 607c982450
commit 7c45e2ca41
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ class IRSenderBitBang : public IRSender
void mark(int markLength);
protected:
uint _halfPeriodicTime;
int _halfPeriodicTime;
};
#endif

View File

@ -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);