@@ -755,8 +755,8 @@ int ax25_parse_addr (int position, char *in_addr, int strict, char *out_addr, in
755
755
if (strict && strlen (in_addr ) >= 2 && strncmp (in_addr , "qA" , 2 ) == 0 ) {
756
756
757
757
text_color_set (DW_COLOR_ERROR );
758
- dw_printf ("%sAddress \"%s\" is a \"q-construct\" used for communicating\n" , position_name [position ], in_addr );
759
- dw_printf ("with APRS Internet Servers. It was not expected here .\n" );
758
+ dw_printf ("%sAddress \"%s\" is a \"q-construct\" used for communicating with \n" , position_name [position ], in_addr );
759
+ dw_printf ("APRS Internet Servers. It should never appear when going over the radio .\n" );
760
760
}
761
761
762
762
//dw_printf ("ax25_parse_addr in: %s\n", in_addr);
@@ -779,11 +779,21 @@ int ax25_parse_addr (int position, char *in_addr, int strict, char *out_addr, in
779
779
780
780
out_addr [i ++ ] = * p ;
781
781
out_addr [i ] = '\0' ;
782
+
783
+ #if DECAMAIN // Hack when running in decode_aprs utility.
784
+ // Exempt the "qA..." case because it was already mentioned.
785
+
786
+ if (strict && islower (* p ) && strncmp (in_addr , "qA" , 2 ) != 0 ) {
787
+ text_color_set (DW_COLOR_ERROR );
788
+ dw_printf ("%sAddress has lower case letters. \"%s\" must be all upper case.\n" , position_name [position ], in_addr );
789
+ }
790
+ #else
782
791
if (strict && islower (* p )) {
783
792
text_color_set (DW_COLOR_ERROR );
784
793
dw_printf ("%sAddress has lower case letters. \"%s\" must be all upper case.\n" , position_name [position ], in_addr );
785
794
return 0 ;
786
795
}
796
+ #endif
787
797
}
788
798
789
799
j = 0 ;
0 commit comments