mirror of https://github.com/wb2osz/direwolf.git
				
				
				
			Add missing text_color_init to test programs
This commit is contained in:
		
							parent
							
								
									b395acfd87
								
							
						
					
					
						commit
						6c62d30416
					
				| 
						 | 
				
			
			@ -2078,6 +2078,7 @@ static void check_result (void)
 | 
			
		|||
 | 
			
		||||
int main (int argc, char *argv[])
 | 
			
		||||
{
 | 
			
		||||
	text_color_init (1, 0);
 | 
			
		||||
	aprs_tt_init (NULL, 0);
 | 
			
		||||
 | 
			
		||||
	error_count = 0;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -792,6 +792,8 @@ int main ()
 | 
			
		|||
	strcpy (addrs[1], "WB2OSZ-15");
 | 
			
		||||
	num_addr = 2;
 | 
			
		||||
 | 
			
		||||
	text_color_init (1, 0);
 | 
			
		||||
 | 
			
		||||
/* U frame */
 | 
			
		||||
 | 
			
		||||
	for (ftype = frame_type_U_SABME; ftype <= frame_type_U_TEST; ftype++) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -765,6 +765,7 @@ int main (int argc, char *argv[])
 | 
			
		|||
	strlcpy(mycall, "WB2OSZ-9", sizeof(mycall));
 | 
			
		||||
 | 
			
		||||
	dedupe_init (4);
 | 
			
		||||
	text_color_init (1, 0);
 | 
			
		||||
 | 
			
		||||
/* 
 | 
			
		||||
 * Compile the patterns. 
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -532,6 +532,7 @@ int main ()
 | 
			
		|||
	my_audio_config.chan_medium[c] = MEDIUM_RADIO;
 | 
			
		||||
	my_audio_config.achan[c].dtmf_decode = DTMF_DECODE_ON;
 | 
			
		||||
 | 
			
		||||
	text_color_init (1, 0);
 | 
			
		||||
	dtmf_init(&my_audio_config, 50);	
 | 
			
		||||
 | 
			
		||||
	text_color_set(DW_COLOR_INFO);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -853,6 +853,7 @@ int main (int argc, char *argv[])
 | 
			
		|||
	char result[100];
 | 
			
		||||
	int errors = 0;
 | 
			
		||||
 | 
			
		||||
	text_color_init (1, 0);
 | 
			
		||||
 | 
			
		||||
/***********  Position  ***********/
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -73,6 +73,7 @@ static int fx25_test_count = 0;
 | 
			
		|||
 | 
			
		||||
int main ()
 | 
			
		||||
{
 | 
			
		||||
	text_color_init(1, 0);
 | 
			
		||||
	fx25_init(3);
 | 
			
		||||
 | 
			
		||||
	for (int i = CTAG_MIN; i <= CTAG_MAX; i++) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -55,6 +55,7 @@ static unsigned char preload[] = {
 | 
			
		|||
 | 
			
		||||
int main ()
 | 
			
		||||
{
 | 
			
		||||
	text_color_init(1, 0);
 | 
			
		||||
	text_color_set(DW_COLOR_ERROR);
 | 
			
		||||
	dw_printf("fxsend - FX.25 unit test.\n");
 | 
			
		||||
	dw_printf("This generates 11 files named fx01.dat, fx02.dat, ..., fx0b.dat\n");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -265,6 +265,8 @@ int main(int argc, char **argv)
 | 
			
		|||
 | 
			
		||||
	strlcpy (output_file, "", sizeof(output_file));
 | 
			
		||||
 | 
			
		||||
	text_color_init (1, 0);
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Parse the command line options.
 | 
			
		||||
 */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -899,6 +899,8 @@ int main (int argc, char *argv[])
 | 
			
		|||
	double dlat, dlon;
 | 
			
		||||
	double d, b;
 | 
			
		||||
 | 
			
		||||
	text_color_init (1, 0);
 | 
			
		||||
 | 
			
		||||
/* Latitude to APRS format. */
 | 
			
		||||
 | 
			
		||||
	latitude_to_str (45.25, 0, result);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1527,6 +1527,7 @@ static void pftest (int test_num, char *filter, char *packet, int expected);
 | 
			
		|||
int main ()
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
	text_color_init (1, 0);
 | 
			
		||||
	dw_printf ("Quick test for packet filtering.\n");
 | 
			
		||||
	dw_printf ("Some error messages are normal.  Look at the final success/fail message.\n");
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1069,6 +1069,7 @@ int main ( )
 | 
			
		|||
	strlcpy (comment, "", sizeof(comment));
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
	text_color_init(1, 0);
 | 
			
		||||
	text_color_set(DW_COLOR_INFO);
 | 
			
		||||
	dw_printf ("Unit test for telemetry decoding functions...\n");	
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1782,6 +1782,7 @@ static void test_tt2text (char *buttons, char *expect_mp, char *expect_2k, char
 | 
			
		|||
int main (int argc, char *argv[])
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
	text_color_init (1, 0);
 | 
			
		||||
	text_color_set (DW_COLOR_INFO);
 | 
			
		||||
	dw_printf ("Test conversions between normal text and DTMF representation.\n");
 | 
			
		||||
	dw_printf ("Some error messages are normal.  Just look for number of errors at end.\n");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue