kopia lustrzana https://github.com/Hamlib/Hamlib
Set PTT type to NONE
Corrected get_freq error off by a factor of 10--bug tracker # 2009215, thanks to F4ECW and KC0MLS git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2370 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.2.8
rodzic
bd65eb907e
commit
067368b821
|
@ -9,7 +9,7 @@
|
||||||
* "CAT" interface box (FIF-232C) or similar.
|
* "CAT" interface box (FIF-232C) or similar.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* $Id: ft757gx.c,v 1.5 2008-01-10 14:19:19 n0nb Exp $
|
* $Id: ft757gx.c,v 1.6 2008-07-08 15:02:37 n0nb Exp $
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
|
@ -186,7 +186,7 @@ const struct rig_caps ft757gx2_caps = {
|
||||||
.copyright = "LGPL",
|
.copyright = "LGPL",
|
||||||
.status = RIG_STATUS_ALPHA,
|
.status = RIG_STATUS_ALPHA,
|
||||||
.rig_type = RIG_TYPE_MOBILE,
|
.rig_type = RIG_TYPE_MOBILE,
|
||||||
.ptt_type = RIG_PTT_SERIAL_DTR, /* pin4? */
|
.ptt_type = RIG_PTT_NONE,
|
||||||
.dcd_type = RIG_DCD_NONE,
|
.dcd_type = RIG_DCD_NONE,
|
||||||
.port_type = RIG_PORT_SERIAL,
|
.port_type = RIG_PORT_SERIAL,
|
||||||
.serial_rate_min = 4800,
|
.serial_rate_min = 4800,
|
||||||
|
@ -428,13 +428,13 @@ int ft757_get_freq(RIG *rig, vfo_t vfo, freq_t *freq)
|
||||||
/* grab freq (little endian format) and convert */
|
/* grab freq (little endian format) and convert */
|
||||||
switch(vfo) {
|
switch(vfo) {
|
||||||
case RIG_VFO_CURR:
|
case RIG_VFO_CURR:
|
||||||
*freq = from_bcd(priv->update_data+STATUS_CURR_FREQ, BCD_LEN);
|
*freq = 10 * from_bcd(priv->update_data+STATUS_CURR_FREQ, BCD_LEN);
|
||||||
break;
|
break;
|
||||||
case RIG_VFO_A:
|
case RIG_VFO_A:
|
||||||
*freq = from_bcd(priv->update_data+STATUS_VFOA_FREQ, BCD_LEN);
|
*freq = 10 * from_bcd(priv->update_data+STATUS_VFOA_FREQ, BCD_LEN);
|
||||||
break;
|
break;
|
||||||
case RIG_VFO_B:
|
case RIG_VFO_B:
|
||||||
*freq = from_bcd(priv->update_data+STATUS_VFOB_FREQ, BCD_LEN);
|
*freq = 10 * from_bcd(priv->update_data+STATUS_VFOB_FREQ, BCD_LEN);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return -RIG_EINVAL; /* sorry, wrong VFO */
|
return -RIG_EINVAL; /* sorry, wrong VFO */
|
||||||
|
|
Ładowanie…
Reference in New Issue