diff options
author | Keith Packard <keithp@keithp.com> | 2015-03-10 09:32:20 -0600 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2015-03-10 09:32:20 -0600 |
commit | f92be7e22150b2de4c899e687d3bbfc1eb842f9e (patch) | |
tree | cfa4a96dafb5577b5018371f84fbbff55fd99df0 /src/drivers/ao_aprs.c | |
parent | 46f2a759dc21ebf3a7bf7e0566903fc1e7364719 (diff) |
altos/test: Make aprs test code compile again
Adding the compressed/uncompressed config option broke the APRS test harness.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/drivers/ao_aprs.c')
-rw-r--r-- | src/drivers/ao_aprs.c | 6 |
1 files changed, 6 insertions, 0 deletions
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: { |