Skip to content

Commit 85fc3c4

Browse files
commented out printf for frequency in non-standard format (AO-7 telem generates this error accidentally)
1 parent 28e9e08 commit 85fc3c4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

decode_aprs.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -4529,10 +4529,10 @@ static void process_comment (decode_aprs_t *A, char *pstart, int clen)
45294529
(x >= 902 && x <= 928)) {
45304530

45314531
if ( ! A->g_quiet) {
4532-
snprintf (good, sizeof(good), "%07.3fMHz", x);
4532+
// snprintf (good, sizeof(good), "%07.3fMHz", x);
45334533
text_color_set(DW_COLOR_ERROR);
4534-
dw_printf("\"%s\" in comment looks like a frequency in non-standard format.\n", bad);
4535-
dw_printf("For most systems to recognize it, use exactly this form \"%s\" at beginning of comment.\n", good);
4534+
// dw_printf("\"%s\" in comment looks like a frequency in non-standard format.\n", bad);
4535+
// dw_printf("For most systems to recognize it, use exactly this form \"%s\" at beginning of comment.\n", good);
45364536
}
45374537
if (A->g_freq == G_UNKNOWN) {
45384538
A->g_freq = x;
@@ -4571,10 +4571,10 @@ static void process_comment (decode_aprs_t *A, char *pstart, int clen)
45714571
if (strcmp (s_ctcss[i], bad2) == 0) {
45724572

45734573
if ( ! A->g_quiet) {
4574-
snprintf (good, sizeof(good), "T%03d", i_ctcss[i]);
4574+
// snprintf (good, sizeof(good), "T%03d", i_ctcss[i]);
45754575
text_color_set(DW_COLOR_ERROR);
4576-
dw_printf("\"%s\" in comment looks like it might be a CTCSS tone in non-standard format.\n", bad1);
4577-
dw_printf("For most systems to recognize it, use exactly this form \"%s\" at near beginning of comment, after any frequency.\n", good);
4576+
// dw_printf("\"%s\" in comment looks like it might be a CTCSS tone in non-standard format.\n", bad1);
4577+
// dw_printf("For most systems to recognize it, use exactly this form \"%s\" at near beginning of comment, after any frequency.\n", good);
45784578
}
45794579
if (A->g_tone == G_UNKNOWN) {
45804580
A->g_tone = atof(bad2);

0 commit comments

Comments
 (0)