1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-12-23 08:27:42 +02:00

tools/atrf-path: added interactive dumping with D

- sweep.h (print_sweep), atrf-path.c (print_sweep): make global, for
  sharing with gui.c
- gui.c (gui): dump the sweep results to standard output if "D" is
  pressed
This commit is contained in:
Werner Almesberger 2011-05-28 12:03:23 -03:00
parent c78423b5e5
commit b82472bb01
3 changed files with 7 additions and 1 deletions

View File

@ -152,7 +152,7 @@ int do_sweep(const struct sweep *sweep, struct sample *res)
}
static void print_sweep(const struct sweep *sweep, const struct sample *res)
void print_sweep(const struct sweep *sweep, const struct sample *res)
{
int chan;

View File

@ -261,6 +261,10 @@ int gui(const struct sweep *sweep, int sweeps)
if (cycle && !fail)
return 1;
break;
case SDLK_d:
if (cycle)
print_sweep(sweep, res);
break;
case SDLK_q:
return 0;
default:

View File

@ -53,4 +53,6 @@ struct sample {
int do_sweep(const struct sweep *sweep, struct sample *res);
void print_sweep(const struct sweep *sweep, const struct sample *res);
#endif /* !SWEEP_H */