From f92be7e22150b2de4c899e687d3bbfc1eb842f9e Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 10 Mar 2015 09:32:20 -0600 Subject: [PATCH] altos/test: Make aprs test code compile again Adding the compressed/uncompressed config option broke the APRS test harness. Signed-off-by: Keith Packard --- src/drivers/ao_aprs.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/drivers/ao_aprs.c b/src/drivers/ao_aprs.c index 2e977612..a8016673 100644 --- a/src/drivers/ao_aprs.c +++ b/src/drivers/ao_aprs.c @@ -719,7 +719,13 @@ static int tncPositionPacket(void) buf = tncBuffer; +#ifdef AO_APRS_TEST +#define AO_APRS_FORMAT_COMPRESSED 0 +#define AO_APRS_FORMAT_UNCOMPRESSED 1 + switch (AO_APRS_FORMAT_COMPRESSED) { +#else switch (ao_config.aprs_format) { +#endif case AO_APRS_FORMAT_COMPRESSED: default: { -- 2.30.2