Skip to content
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

GD-77 cross-ban digital channel, format error (includes fix) #48

Open
vk2sky opened this issue Apr 4, 2020 · 0 comments
Open

GD-77 cross-ban digital channel, format error (includes fix) #48

vk2sky opened this issue Apr 4, 2020 · 0 comments

Comments

@vk2sky
Copy link

vk2sky commented Apr 4, 2020

I only discovered this by accident, as the code plug a fellow Amateur gave me had a channel incorrectly programmed with tx and rx frequencies in different bands. As a result, device.conf contains this:.

:
486   IPW3807          146.1875  +0.6     High  1    -   -  -      1     2    9    9    # VK7 3807
487   IPW3809          146.1875   431.8375High  1    -   -  -      1     1    10   10   # VK UA 3809

Line 487 has one space too many before the Tx frequency, and one too few after. Trying to burn this back into the radio throws a parsing error.

A simple fix is, in util.c:

void print_offset(FILE *out, unsigned rx_bcd, unsigned tx_bcd)
{
    :
    :
   } else {
        /* fprintf(out, " ");    MOVE THIS LINE... */
        print_mhz(out, tx_hz);
        fprintf(out, " ");   /* ...DOWN TO HERE */
    }
}

I would have submitted a PR, but seem to be having GitHub permissions problems at the moment.

73 Richard VK2SKY

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant