Simplify infinal loop

This commit is contained in:
Ivan Tham 2016-07-11 20:35:56 +08:00
parent c89ef49965
commit 8e7bd4d2aa

2
spt.c
View File

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