Fix dead code found by cppcheck in ft980.c

pull/174/head
Michael Black 2020-01-14 12:43:44 -06:00
rodzic e75e14a9c8
commit 23a7ccb770
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6599353EC683404D
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -964,9 +964,10 @@ int ft980_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
int ft980_set_split_vfo(RIG *rig, vfo_t vfo, split_t split, vfo_t tx_vfo)
{
return -RIG_ENIMPL;
#if 0 // deprecated as was ignored before now
unsigned char cmd[YAESU_CMD_LENGTH] = { 0x00, 0x00, 0x00, 0x00, 0x8e};
return -RIG_ENIMPL;
/*
* this can be misleading as Yaesu call it "Full duplex"
@ -975,6 +976,7 @@ int ft980_set_split_vfo(RIG *rig, vfo_t vfo, split_t split, vfo_t tx_vfo)
cmd[4] = split == RIG_SPLIT_ON ? 0x0e : 0x8e;
return write_block(&rig->state.rigport, (char *) cmd, YAESU_CMD_LENGTH);
#endif
}
int ft980_set_split_freq(RIG *rig, vfo_t vfo, freq_t freq)