From: Keith Packard Date: Tue, 10 Mar 2015 15:32:20 +0000 (-0600) Subject: altos/test: Make aprs test code compile again X-Git-Tag: 1.6.0.3~99 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=f92be7e22150b2de4c899e687d3bbfc1eb842f9e altos/test: Make aprs test code compile again Adding the compressed/uncompressed config option broke the APRS test harness. Signed-off-by: Keith Packard --- 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: {