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-79ac388436b8
Hamlib-1.2.8
Nate Bargmann, N0NB 2008-07-08 15:02:37 +00:00
rodzic bd65eb907e
commit 067368b821
1 zmienionych plików z 8 dodań i 8 usunięć

Wyświetl plik

@ -9,7 +9,7 @@
* "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
@ -186,7 +186,7 @@ const struct rig_caps ft757gx2_caps = {
.copyright = "LGPL",
.status = RIG_STATUS_ALPHA,
.rig_type = RIG_TYPE_MOBILE,
.ptt_type = RIG_PTT_SERIAL_DTR, /* pin4? */
.ptt_type = RIG_PTT_NONE,
.dcd_type = RIG_DCD_NONE,
.port_type = RIG_PORT_SERIAL,
.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 */
switch(vfo) {
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;
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;
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;
default:
return -RIG_EINVAL; /* sorry, wrong VFO */