diff options
author | Keith Packard <keithp@keithp.com> | 2016-10-09 19:42:42 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2016-10-30 21:24:43 -0700 |
commit | 5e24d637a8af09bf64beb7fcf7be4c13eee76a43 (patch) | |
tree | 38eaf544caa3117449456dd5e1302ddb46b36b45 /src/kernel/ao_pyro.c | |
parent | e3d8ad6de7d2dfabe45a285b27f465ba68844f05 (diff) |
altos/test: Fix tests
A couple of fixups for ao_flight_test to dump pyro info only when
running in debug mode, and to change the aprs testing
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/kernel/ao_pyro.c')
-rw-r--r-- | src/kernel/ao_pyro.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kernel/ao_pyro.c b/src/kernel/ao_pyro.c index c9920ab3..b11d1080 100644 --- a/src/kernel/ao_pyro.c +++ b/src/kernel/ao_pyro.c @@ -75,7 +75,8 @@ uint16_t ao_pyro_fired; #endif #if PYRO_DBG -#define DBG(...) do { printf("\t%d: ", (int) (pyro - ao_config.pyro)); printf(__VA_ARGS__); } while (0) +int pyro_dbg; +#define DBG(...) do { if (pyro_dbg) printf("\t%d: ", (int) (pyro - ao_config.pyro)); printf(__VA_ARGS__); } while (0) #else #define DBG(...) #endif |