altos/test: Make aprs test code compile again
authorKeith Packard <keithp@keithp.com>
Tue, 10 Mar 2015 15:32:20 +0000 (09:32 -0600)
committerKeith Packard <keithp@keithp.com>
Tue, 10 Mar 2015 15:32:20 +0000 (09:32 -0600)
Adding the compressed/uncompressed config option broke the APRS test harness.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_aprs.c

index 2e977612809ddbe4c41333486e85f25f3aa0f569..a8016673a0fde1b4450a3ed2431fb91c05d0ca60 100644 (file)
@@ -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:
     {