--- a/lib/rc-switch.c Thu May 08 22:36:51 2014 +0200 +++ b/lib/rc-switch.c Fri May 09 20:39:01 2014 +0200 @@ -958,8 +958,8 @@ static unsigned int repeatCount; - long time = micros(); - duration = time - lastTime; + long thistime = micros(); + duration = thistime - lastTime; if (duration > 5000 && duration > timings[0] - 200 && duration < timings[0] + 200) { repeatCount++; @@ -984,7 +984,7 @@ repeatCount = 0; } timings[changeCount++] = duration; - lastTime = time; + lastTime = thistime; }