1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-25 20:14:40 +02:00

atrf-path/gui.c (main): cycle counting was broken; fixed it

This commit is contained in:
Werner Almesberger 2011-04-13 19:34:00 -03:00
parent f32f48ae26
commit fbc7aee55f

View File

@ -173,7 +173,7 @@ void gui(const struct sweep *sweep, int sweeps)
{
SDL_Surface *surf;
SDL_Event event;
int cycle = 0;
int cycle;
int fail;
if (SDL_Init(SDL_INIT_VIDEO) < 0) {
@ -188,7 +188,7 @@ void gui(const struct sweep *sweep, int sweeps)
exit(1);
}
while (cycle != sweeps || !sweeps) {
for (cycle = 0; cycle != sweeps || !sweeps; cycle++) {
struct sample res[N_CHAN*2];
while (SDL_PollEvent(&event))