mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-23 05:57:31 +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:
parent
c78423b5e5
commit
b82472bb01
@ -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;
|
int chan;
|
||||||
|
|
||||||
|
@ -261,6 +261,10 @@ int gui(const struct sweep *sweep, int sweeps)
|
|||||||
if (cycle && !fail)
|
if (cycle && !fail)
|
||||||
return 1;
|
return 1;
|
||||||
break;
|
break;
|
||||||
|
case SDLK_d:
|
||||||
|
if (cycle)
|
||||||
|
print_sweep(sweep, res);
|
||||||
|
break;
|
||||||
case SDLK_q:
|
case SDLK_q:
|
||||||
return 0;
|
return 0;
|
||||||
default:
|
default:
|
||||||
|
@ -53,4 +53,6 @@ struct sample {
|
|||||||
|
|
||||||
int do_sweep(const struct sweep *sweep, struct sample *res);
|
int do_sweep(const struct sweep *sweep, struct sample *res);
|
||||||
|
|
||||||
|
void print_sweep(const struct sweep *sweep, const struct sample *res);
|
||||||
|
|
||||||
#endif /* !SWEEP_H */
|
#endif /* !SWEEP_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user