git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2019 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.2.5
Stéphane Fillod, F8CFE 2005-04-16 11:55:49 +00:00
rodzic 71aa2e836e
commit 35d143e08c
1 zmienionych plików z 1961 dodań i 1965 usunięć

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib CI-V backend - main file * Hamlib CI-V backend - main file
* Copyright (c) 2000-2004 by Stephane Fillod * Copyright (c) 2000-2004 by Stephane Fillod
* *
* $Id: icom.c,v 1.92 2004-09-26 08:35:03 fillods Exp $ * $Id: icom.c,v 1.93 2005-04-16 11:55:49 fillods Exp $
* *
* This library is free software; you can redistribute it and/or modify * This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as * it under the terms of the GNU Library General Public License as
@ -567,8 +567,7 @@ int icom_set_vfo(RIG *rig, vfo_t vfo)
} }
return RIG_OK; return RIG_OK;
default: default:
rig_debug(RIG_DEBUG_ERR,"icom: Unsupported VFO %d\n", rig_debug(RIG_DEBUG_ERR,"icom: Unsupported VFO %d\n", vfo);
vfo);
return -RIG_EINVAL; return -RIG_EINVAL;
} }
retval = icom_transaction (rig, C_SET_VFO, icvfo, NULL, 0, retval = icom_transaction (rig, C_SET_VFO, icvfo, NULL, 0,
@ -1617,9 +1616,8 @@ int icom_set_ts(RIG *rig, vfo_t vfo, shortfreq_t ts)
break; break;
} }
} }
if (i >= TSLSTSIZ) { if (i >= TSLSTSIZ)
return -RIG_EINVAL; /* not found, unsupported */ return -RIG_EINVAL; /* not found, unsupported */
}
retval = icom_transaction (rig, C_SET_TS, ts_sc, NULL, 0, retval = icom_transaction (rig, C_SET_TS, ts_sc, NULL, 0,
ackbuf, &ack_len); ackbuf, &ack_len);
@ -1668,9 +1666,8 @@ int icom_get_ts(RIG *rig, vfo_t vfo, shortfreq_t *ts)
break; break;
} }
} }
if (i >= TSLSTSIZ) { if (i >= TSLSTSIZ)
return -RIG_EPROTO; /* not found, unsupported */ return -RIG_EPROTO; /* not found, unsupported */
}
return RIG_OK; return RIG_OK;
} }
@ -2801,9 +2798,8 @@ DECLARE_PROBERIG_BACKEND(icom)
continue; continue;
/* wrong protocol? */ /* wrong protocol? */
if (frm_len != 7 || buf[4] != C_CTL_MISC || buf[5] != S_OPTO_RDID) { if (frm_len != 7 || buf[4] != C_CTL_MISC || buf[5] != S_OPTO_RDID)
continue; continue;
}
rig_debug(RIG_DEBUG_VERBOSE, "%s, found OptoScan%c%c%c, software version %d.%d, " rig_debug(RIG_DEBUG_VERBOSE, "%s, found OptoScan%c%c%c, software version %d.%d, "
"interface version %d.%d, at %#x\n", "interface version %d.%d, at %#x\n",