Fix DIG MODE for FT817-ND

The FT817-ND only has RTTY, PSK31-L, PSK31-U, USER-L, USER-U as
possible DIG MODEs.  Before this fix, the modes read by Hamlib were
completely wrong.

The RTTY mode in the FT817-ND is USB. I think that the corresponding
Hamlib mode is RIG_MODE_RTTYR but I'm not certain if this is supposed to
be USB or LSB.

This has been tested on an FT817-ND. The FT817 might be different.
astyle-formatting
Daniel Estévez 2017-02-04 16:09:48 +01:00 zatwierdzone przez Nate Bargmann
rodzic 74160301d5
commit ef08446995
1 zmienionych plików z 2 dodań i 4 usunięć

Wyświetl plik

@ -117,8 +117,7 @@ static const yaesu_cmd_set_t ncmd[] = {
};
enum ft817_digi {
FT817_DIGI_RTTY_L = 0,
FT817_DIGI_RTTY_U,
FT817_DIGI_RTTY = 0,
FT817_DIGI_PSK_L,
FT817_DIGI_PSK_U,
FT817_DIGI_USER_L,
@ -503,8 +502,7 @@ int ft817_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
case 0x0a:
switch (p->fm_status[5])
{
case FT817_DIGI_RTTY_L: *mode = RIG_MODE_RTTY; break;
case FT817_DIGI_RTTY_U: *mode = RIG_MODE_RTTYR; break;
case FT817_DIGI_RTTY: *mode = RIG_MODE_RTTYR; break;
case FT817_DIGI_PSK_L: *mode = RIG_MODE_PKTLSB; break;
case FT817_DIGI_PSK_U: *mode = RIG_MODE_PKTUSB; break;
case FT817_DIGI_USER_L: *mode = RIG_MODE_PKTLSB; break;