fixed misc bug (untested)

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@488 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.1.1
Stéphane Fillod, F8CFE 2001-05-15 22:06:37 +00:00
rodzic ae4d375ef8
commit 0930905046
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -6,7 +6,7 @@
* via serial interface to an ICOM using the "CI-V" interface.
*
*
* $Id: icom.c,v 1.25 2001-05-04 22:40:37 f4cfe Exp $
* $Id: icom.c,v 1.26 2001-05-15 22:06:37 f4cfe Exp $
*
*
*
@ -1438,7 +1438,7 @@ int icom_set_ctcss(RIG *rig, vfo_t vfo, unsigned int tone)
return -RIG_EINVAL;
tone_len = 1;
to_bcd_be(tonebuf, (long long)caps->ctcss_list[i], tone_len*2);
to_bcd_be(tonebuf, (long long)i, tone_len*2);
icom_transaction(rig, C_SET_TONE, S_TONE_RPTR, tonebuf, tone_len,
ackbuf, &ack_len);
@ -1522,7 +1522,7 @@ int icom_set_ctcss_sql(RIG *rig, vfo_t vfo, unsigned int tone)
return -RIG_EINVAL;
tone_len = 1;
to_bcd_be(tonebuf, (long long)caps->ctcss_list[i], tone_len*2);
to_bcd_be(tonebuf, (long long)i, tone_len*2);
icom_transaction(rig, C_SET_TONE, S_TONE_SQL, tonebuf, tone_len,
ackbuf, &ack_len);