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
Show file tree
Hide file tree
Changes from all commits
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
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
2 changes: 1 addition & 1 deletion morse.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ static const struct morse_s {
{ 'F', "..-." },
{ 'G', "--." },
{ 'H', "...." },
{ 'I', "." },
{ 'I', ".." },
{ 'J', ".---" },
{ 'K', "-.-" },
{ 'L', ".-.." },
Expand Down