Simplify infinal loop
This commit is contained in:
parent
c89ef49965
commit
8e7bd4d2aa
2
spt.c
2
spt.c
|
@ -123,7 +123,7 @@ run:
|
||||||
for (timecount = 0; timecount < timers[i].tmr; timecount++)
|
for (timecount = 0; timecount < timers[i].tmr; timecount++)
|
||||||
sleep(1);
|
sleep(1);
|
||||||
|
|
||||||
i + 1 >= LEN(timers) ? i = 0 : i++; /* i infinal loop */
|
i < LEN(timers) ? i++ : i = 0; /* i infinal loop */
|
||||||
goto run;
|
goto run;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user