Skip to content

Commit 6c62d30

Browse files
committed
Add missing text_color_init to test programs
1 parent b395acf commit 6c62d30

13 files changed

+19
-3
lines changed

src/aprs_tt.c

+1
Original file line numberDiff line numberDiff line change
@@ -2078,6 +2078,7 @@ static void check_result (void)
20782078

20792079
int main (int argc, char *argv[])
20802080
{
2081+
text_color_init (1, 0);
20812082
aprs_tt_init (NULL, 0);
20822083

20832084
error_count = 0;

src/ax25_pad2.c

+2
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,8 @@ int main ()
792792
strcpy (addrs[1], "WB2OSZ-15");
793793
num_addr = 2;
794794

795+
text_color_init (1, 0);
796+
795797
/* U frame */
796798

797799
for (ftype = frame_type_U_SABME; ftype <= frame_type_U_TEST; ftype++) {

src/digipeater.c

+1
Original file line numberDiff line numberDiff line change
@@ -765,6 +765,7 @@ int main (int argc, char *argv[])
765765
strlcpy(mycall, "WB2OSZ-9", sizeof(mycall));
766766

767767
dedupe_init (4);
768+
text_color_init (1, 0);
768769

769770
/*
770771
* Compile the patterns.

src/dtmf.c

+1
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@ int main ()
532532
my_audio_config.chan_medium[c] = MEDIUM_RADIO;
533533
my_audio_config.achan[c].dtmf_decode = DTMF_DECODE_ON;
534534

535+
text_color_init (1, 0);
535536
dtmf_init(&my_audio_config, 50);
536537

537538
text_color_set(DW_COLOR_INFO);

src/encode_aprs.c

+1
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,7 @@ int main (int argc, char *argv[])
853853
char result[100];
854854
int errors = 0;
855855

856+
text_color_init (1, 0);
856857

857858
/*********** Position ***********/
858859

src/fx25_rec.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ static int fx25_test_count = 0;
7373

7474
int main ()
7575
{
76+
text_color_init(1, 0);
7677
fx25_init(3);
7778

7879
for (int i = CTAG_MIN; i <= CTAG_MAX; i++) {
@@ -480,4 +481,4 @@ static int my_unstuff (int chan, int subchan, int slice, unsigned char * restric
480481

481482
} // my_unstuff
482483

483-
// end fx25_rec.c
484+
// end fx25_rec.c

src/fx25_send.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ static unsigned char preload[] = {
5555

5656
int main ()
5757
{
58+
text_color_init(1, 0);
5859
text_color_set(DW_COLOR_ERROR);
5960
dw_printf("fxsend - FX.25 unit test.\n");
6061
dw_printf("This generates 11 files named fx01.dat, fx02.dat, ..., fx0b.dat\n");
@@ -333,4 +334,4 @@ static int stuff_it (unsigned char *in, int ilen, unsigned char *out, int osize)
333334

334335
} // end stuff_it
335336

336-
// end fx25_send.c
337+
// end fx25_send.c

src/gen_packets.c

+2
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,8 @@ int main(int argc, char **argv)
265265

266266
strlcpy (output_file, "", sizeof(output_file));
267267

268+
text_color_init (1, 0);
269+
268270
/*
269271
* Parse the command line options.
270272
*/

src/latlong.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -899,6 +899,8 @@ int main (int argc, char *argv[])
899899
double dlat, dlon;
900900
double d, b;
901901

902+
text_color_init (1, 0);
903+
902904
/* Latitude to APRS format. */
903905

904906
latitude_to_str (45.25, 0, result);
@@ -1086,4 +1088,4 @@ int main (int argc, char *argv[])
10861088
#endif
10871089

10881090

1089-
/* end latlong.c */
1091+
/* end latlong.c */

src/pfilter.c

+1
Original file line numberDiff line numberDiff line change
@@ -1527,6 +1527,7 @@ static void pftest (int test_num, char *filter, char *packet, int expected);
15271527
int main ()
15281528
{
15291529

1530+
text_color_init (1, 0);
15301531
dw_printf ("Quick test for packet filtering.\n");
15311532
dw_printf ("Some error messages are normal. Look at the final success/fail message.\n");
15321533

src/telemetry.c

+1
Original file line numberDiff line numberDiff line change
@@ -1069,6 +1069,7 @@ int main ( )
10691069
strlcpy (comment, "", sizeof(comment));
10701070

10711071

1072+
text_color_init(1, 0);
10721073
text_color_set(DW_COLOR_INFO);
10731074
dw_printf ("Unit test for telemetry decoding functions...\n");
10741075

src/tt_text.c

+1
Original file line numberDiff line numberDiff line change
@@ -1782,6 +1782,7 @@ static void test_tt2text (char *buttons, char *expect_mp, char *expect_2k, char
17821782
int main (int argc, char *argv[])
17831783
{
17841784

1785+
text_color_init (1, 0);
17851786
text_color_set (DW_COLOR_INFO);
17861787
dw_printf ("Test conversions between normal text and DTMF representation.\n");
17871788
dw_printf ("Some error messages are normal. Just look for number of errors at end.\n");

src/xid.c

+1
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,7 @@ int main (int argc, char *argv[]) {
653653
unsigned char info[40]; // Currently max of 27 but things can change.
654654
char desc[150]; // I've seen 109.
655655

656+
text_color_init (1, 0);
656657

657658
/* parse example. */
658659

0 commit comments

Comments
 (0)