Use new th_set_freq for TM-D700

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2986 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.2.13
Charles Suprin, AA1VS 2010-09-19 12:32:24 +00:00
rodzic 7e96c876b2
commit e8f76c4628
1 zmienionych plików z 1 dodań i 14 usunięć

Wyświetl plik

@ -85,7 +85,6 @@ static struct kenwood_priv_caps tmd700_priv_caps = {
.mode_table = tmd700_mode_table,
};
static int tmd700_set_freq (RIG *rig, vfo_t vfo, freq_t freq);
/*
@ -201,7 +200,7 @@ const struct rig_caps tmd700_caps = {
.rig_init = kenwood_init,
.rig_cleanup = kenwood_cleanup,
.set_freq = tmd700_set_freq,
.set_freq = th_set_freq,
.get_freq = th_get_freq,
.set_mode = th_set_mode,
.get_mode = th_get_mode,
@ -237,17 +236,5 @@ const struct rig_caps tmd700_caps = {
.decode_event = th_decode_event,
};
static int tmd700_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
{
/* make it so that the radio tunes to something close */
/* the radio does not round internally so rounding it */
/* to a raster before it passes to the radio is required */
/* this may not be the completely correct raster as the */
/* supports 6.25kHz channelization */
freq_t freq2 = round(freq/5000)*5000;
return th_set_freq(rig, vfo, freq2);
}
/* end of file */