commented out printf for frequency in non-standard format (AO-7 telem generates this error accidentally)

This commit is contained in:
alanbjohnston 2021-08-11 12:28:20 -04:00 committed by GitHub
parent 28e9e08e7e
commit 85fc3c41a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -4529,10 +4529,10 @@ static void process_comment (decode_aprs_t *A, char *pstart, int clen)
(x >= 902 && x <= 928)) {
if ( ! A->g_quiet) {
snprintf (good, sizeof(good), "%07.3fMHz", x);
// snprintf (good, sizeof(good), "%07.3fMHz", x);
text_color_set(DW_COLOR_ERROR);
dw_printf("\"%s\" in comment looks like a frequency in non-standard format.\n", bad);
dw_printf("For most systems to recognize it, use exactly this form \"%s\" at beginning of comment.\n", good);
// dw_printf("\"%s\" in comment looks like a frequency in non-standard format.\n", bad);
// dw_printf("For most systems to recognize it, use exactly this form \"%s\" at beginning of comment.\n", good);
}
if (A->g_freq == G_UNKNOWN) {
A->g_freq = x;
@ -4571,10 +4571,10 @@ static void process_comment (decode_aprs_t *A, char *pstart, int clen)
if (strcmp (s_ctcss[i], bad2) == 0) {
if ( ! A->g_quiet) {
snprintf (good, sizeof(good), "T%03d", i_ctcss[i]);
// snprintf (good, sizeof(good), "T%03d", i_ctcss[i]);
text_color_set(DW_COLOR_ERROR);
dw_printf("\"%s\" in comment looks like it might be a CTCSS tone in non-standard format.\n", bad1);
dw_printf("For most systems to recognize it, use exactly this form \"%s\" at near beginning of comment, after any frequency.\n", good);
// dw_printf("\"%s\" in comment looks like it might be a CTCSS tone in non-standard format.\n", bad1);
// dw_printf("For most systems to recognize it, use exactly this form \"%s\" at near beginning of comment, after any frequency.\n", good);
}
if (A->g_tone == G_UNKNOWN) {
A->g_tone = atof(bad2);