Skip to content

No freq error #346

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
commented out printf for frequency in non-standard format (AO-7 telem…
… generates this error accidentally)
  • Loading branch information
alanbjohnston authored Aug 11, 2021
commit 85fc3c41a74a8df26edf055df2604b38387e3b46
12 changes: 6 additions & 6 deletions decode_aprs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down