From 23a7ccb770c74780e27dd0c5ed577d607e23800c Mon Sep 17 00:00:00 2001 From: Michael Black Date: Tue, 14 Jan 2020 12:43:44 -0600 Subject: [PATCH] Fix dead code found by cppcheck in ft980.c --- yaesu/ft980.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/yaesu/ft980.c b/yaesu/ft980.c index ed0911459..8d9f945d8 100644 --- a/yaesu/ft980.c +++ b/yaesu/ft980.c @@ -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)