Fix set_freq for ic10.c to not expect return value

pull/224/head
Michael Black 2020-03-30 22:31:53 -05:00
rodzic 9ae78642aa
commit 2598c8c3ef
4 zmienionych plików z 6 dodań i 6 usunięć

Wyświetl plik

@ -398,8 +398,8 @@ int ic10_get_freq(RIG *rig, vfo_t vfo, freq_t *freq)
*/
int ic10_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
{
char freqbuf[64], ackbuf[64];
int freq_len, ack_len, retval;
char freqbuf[64];
int freq_len, retval;
unsigned char vfo_letter;
vfo_t tvfo;
@ -428,7 +428,7 @@ int ic10_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
// cppcheck-suppress *
freq_len = sprintf(freqbuf, "F%c%011"PRIll";", vfo_letter, (int64_t)freq);
retval = ic10_transaction(rig, freqbuf, freq_len, ackbuf, &ack_len);
retval = ic10_transaction(rig, freqbuf, freq_len, NULL, 0);
return retval;
}

Wyświetl plik

@ -22,7 +22,7 @@
#ifndef _IC10_H
#define _IC10_H 1
#define IC10_VER ".0"
#define IC10_VER "20200330"
int ic10_cmd_trim (char *data, int data_len);
int ic10_transaction (RIG *rig, const char *cmd, int cmd_len, char *data, int *data_len);

Wyświetl plik

@ -62,7 +62,7 @@ const struct rig_caps r5000_caps =
RIG_MODEL(RIG_MODEL_R5000),
.model_name = "R-5000",
.mfg_name = "Kenwood",
.version = BACKEND_VER IC10_VER,
.version = IC10_VER ".0",
.copyright = "LGPL",
.status = RIG_STATUS_ALPHA,
.rig_type = RIG_TYPE_RECEIVER,

Wyświetl plik

@ -64,7 +64,7 @@ const struct rig_caps ts440_caps =
RIG_MODEL(RIG_MODEL_TS440),
.model_name = "TS-440",
.mfg_name = "Kenwood",
.version = BACKEND_VER IC10_VER,
.version = IC10_VER ".0",
.copyright = "LGPL",
.status = RIG_STATUS_ALPHA,
.rig_type = RIG_TYPE_TRANSCEIVER,