lib/rc-switch.c

changeset 32
3bac8fd4173d
parent 29
ac763b87ee25
child 37
2e9b7c1be9a6
--- 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;  
 }
 
 

mercurial