Improve error message.

This commit is contained in:
wb2osz 2023-03-05 15:07:46 +00:00
parent b4b7b1388d
commit cac83f2506
1 changed files with 4 additions and 2 deletions

View File

@ -504,8 +504,10 @@ void decode_aprs_print (decode_aprs_t *A) {
//dw_printf ("DEBUG decode_aprs_print stemp3=%s mfr=%s\n", stemp, A->g_mfr); //dw_printf ("DEBUG decode_aprs_print stemp3=%s mfr=%s\n", stemp, A->g_mfr);
if (strlen(A->g_mfr) > 0) { if (strlen(A->g_mfr) > 0) {
if (strcmp(A->g_dest, "APRS") == 0) { if (strcmp(A->g_dest, "APRS") == 0 || strcmp(A->g_dest, "BEACON") == 0) {
strlcat (stemp, "\nUse of \"APRS\" in the destination field is obsolete.", sizeof(stemp)); strlcat (stemp, "\nUse of \"", sizeof(stemp));
strlcat (stemp, A->g_dest, sizeof(stemp));
strlcat (stemp, "\" in the destination field is obsolete.", sizeof(stemp));
strlcat (stemp, " You can help to improve the quality of APRS signals.", sizeof(stemp)); strlcat (stemp, " You can help to improve the quality of APRS signals.", sizeof(stemp));
strlcat (stemp, "\nTell the sender (", sizeof(stemp)); strlcat (stemp, "\nTell the sender (", sizeof(stemp));
strlcat (stemp, A->g_src, sizeof(stemp)); strlcat (stemp, A->g_src, sizeof(stemp));