kopia lustrzana https://github.com/Hamlib/Hamlib
ts450: remove RIG_FUNC_TONE from has_xx_func if tone unit is not detected
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2607 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.2.9
rodzic
9281935c5e
commit
0bb6d6310a
|
@ -2,7 +2,7 @@
|
||||||
* Hamlib Kenwood backend - TS450S description
|
* Hamlib Kenwood backend - TS450S description
|
||||||
* Copyright (c) 2000-2004 by Stephane Fillod
|
* Copyright (c) 2000-2004 by Stephane Fillod
|
||||||
*
|
*
|
||||||
* $Id: ts450s.c,v 1.25 2009-01-23 03:24:42 n0nb Exp $
|
* $Id: ts450s.c,v 1.26 2009-02-02 20:28:34 azummo 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
|
||||||
|
@ -54,11 +54,25 @@
|
||||||
.flags=RIG_CHFLAG_SKIP \
|
.flags=RIG_CHFLAG_SKIP \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static struct kenwood_priv_caps ts450_priv_caps = {
|
static struct kenwood_priv_caps ts450_priv_caps = {
|
||||||
.cmdtrm = EOM_KEN,
|
.cmdtrm = EOM_KEN,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
static int ts450_open(RIG *rig)
|
||||||
|
{
|
||||||
|
int err;
|
||||||
|
|
||||||
|
err = kenwood_simple_transaction(rig, "TO", 3);
|
||||||
|
if (err != RIG_OK) {
|
||||||
|
rig_debug(RIG_DEBUG_TRACE, "%s: tone unit not detected\n", __func__);
|
||||||
|
rig->state.has_set_func &= ~RIG_FUNC_TONE;
|
||||||
|
rig->state.has_get_func &= ~RIG_FUNC_TONE;
|
||||||
|
}
|
||||||
|
|
||||||
|
return RIG_OK;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ts450s rig capabilities.
|
* ts450s rig capabilities.
|
||||||
* Notice that some rigs share the same functions.
|
* Notice that some rigs share the same functions.
|
||||||
|
@ -179,6 +193,7 @@ const struct rig_caps ts450s_caps = {
|
||||||
|
|
||||||
.rig_init = kenwood_init,
|
.rig_init = kenwood_init,
|
||||||
.rig_cleanup = kenwood_cleanup,
|
.rig_cleanup = kenwood_cleanup,
|
||||||
|
.rig_open = ts450_open,
|
||||||
.set_freq = kenwood_set_freq,
|
.set_freq = kenwood_set_freq,
|
||||||
.get_freq = kenwood_get_freq,
|
.get_freq = kenwood_get_freq,
|
||||||
.set_rit = kenwood_set_rit,
|
.set_rit = kenwood_set_rit,
|
||||||
|
|
Ładowanie…
Reference in New Issue