mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2025-04-21 12:27:27 +03:00
atrf-path: added basic graphical output
- gui.h, gui.c: plot sweep results with SDL_gfx - Makefile: added target-specific variables for SDL and SDL_gfx - atrf-path.c (main): invoke the GUI if the number of sweeps is zero
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include "cwtest.h"
|
||||
#include "atrf.h"
|
||||
|
||||
#include "gui.h"
|
||||
#include "sweep.h"
|
||||
|
||||
|
||||
@@ -211,7 +212,10 @@ int main(int argc, char **argv)
|
||||
return 1;
|
||||
|
||||
sweep.power = 15-power;
|
||||
do_sweeps(&sweep, sweeps);
|
||||
if (sweeps) /* @@@ hack */
|
||||
do_sweeps(&sweep, sweeps);
|
||||
else
|
||||
gui(&sweep);
|
||||
|
||||
atrf_reg_write(sweep.tx, REG_TRX_STATE, TRX_CMD_TRX_OFF);
|
||||
atrf_reg_write(sweep.rx, REG_TRX_STATE, TRX_CMD_TRX_OFF);
|
||||
|
||||
Reference in New Issue
Block a user