mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-29 14:28:25 +02:00
atrf-path/gui.c (main): cycle counting was broken; fixed it
This commit is contained in:
parent
f32f48ae26
commit
fbc7aee55f
@ -173,7 +173,7 @@ void gui(const struct sweep *sweep, int sweeps)
|
|||||||
{
|
{
|
||||||
SDL_Surface *surf;
|
SDL_Surface *surf;
|
||||||
SDL_Event event;
|
SDL_Event event;
|
||||||
int cycle = 0;
|
int cycle;
|
||||||
int fail;
|
int fail;
|
||||||
|
|
||||||
if (SDL_Init(SDL_INIT_VIDEO) < 0) {
|
if (SDL_Init(SDL_INIT_VIDEO) < 0) {
|
||||||
@ -188,7 +188,7 @@ void gui(const struct sweep *sweep, int sweeps)
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
while (cycle != sweeps || !sweeps) {
|
for (cycle = 0; cycle != sweeps || !sweeps; cycle++) {
|
||||||
struct sample res[N_CHAN*2];
|
struct sample res[N_CHAN*2];
|
||||||
|
|
||||||
while (SDL_PollEvent(&event))
|
while (SDL_PollEvent(&event))
|
||||||
|
Loading…
Reference in New Issue
Block a user