kopia lustrzana https://github.com/Hamlib/Hamlib
re-indent
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2039 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.2.5
rodzic
04aaca80c6
commit
a5979f2be5
|
@ -2,7 +2,7 @@
|
|||
* Hamlib Kenwood backend - main file
|
||||
* Copyright (c) 2000-2005 by Stephane Fillod and others
|
||||
*
|
||||
* $Id: kenwood.c,v 1.87 2005-03-13 17:54:16 fillods Exp $
|
||||
* $Id: kenwood.c,v 1.88 2005-09-24 07:48:42 fillods Exp $
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Library General Public License as
|
||||
|
@ -337,7 +337,6 @@ int kenwood_get_vfo(RIG *rig, vfo_t *vfo)
|
|||
rig_debug(RIG_DEBUG_ERR,"kenwood_get_vfo: wrong answer len=%d\n",
|
||||
info_len);
|
||||
return -RIG_ERJCTED;
|
||||
|
||||
}
|
||||
switch (infobuf[30]) {
|
||||
case '0': *vfo = RIG_VFO_A; break;
|
||||
|
@ -349,7 +348,6 @@ int kenwood_get_vfo(RIG *rig, vfo_t *vfo)
|
|||
return -RIG_EPROTO;
|
||||
}
|
||||
return RIG_OK;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -364,8 +362,7 @@ int kenwood_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
|
|||
char vfo_letter;
|
||||
vfo_t tvfo;
|
||||
|
||||
if(vfo==RIG_VFO_CURR) tvfo=rig->state.current_vfo;
|
||||
else tvfo=vfo;
|
||||
tvfo = vfo==RIG_VFO_CURR ? rig->state.current_vfo : vfo;
|
||||
|
||||
switch (tvfo) {
|
||||
case RIG_VFO_A: vfo_letter = 'A'; break;
|
||||
|
@ -396,8 +393,7 @@ int kenwood_get_freq(RIG *rig, vfo_t vfo, freq_t *freq)
|
|||
char vfo_letter;
|
||||
vfo_t tvfo;
|
||||
|
||||
if(vfo==RIG_VFO_CURR) tvfo=rig->state.current_vfo;
|
||||
else tvfo=vfo;
|
||||
tvfo = vfo==RIG_VFO_CURR ? rig->state.current_vfo : vfo;
|
||||
|
||||
switch (tvfo) {
|
||||
case RIG_VFO_A: vfo_letter = 'A'; break;
|
||||
|
@ -865,9 +861,7 @@ int kenwood_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status)
|
|||
int fct_len, retval;
|
||||
|
||||
fct_len = 50;
|
||||
/* Optimize:
|
||||
* sort the switch cases with the most frequent first
|
||||
*/
|
||||
|
||||
switch (func) {
|
||||
case RIG_FUNC_FAGC:
|
||||
retval = kenwood_transaction (rig, "GT;", 3, fctbuf, &fct_len);
|
||||
|
|
Ładowanie…
Reference in New Issue