From f2992dfa0bd7eaa18fd4ca0ce7e4b8f9a429f29b Mon Sep 17 00:00:00 2001 From: Michael Black Date: Fri, 6 Dec 2019 17:01:42 -0600 Subject: [PATCH] remove elad_close from flexradio --- flexradio/dttsp.c | 4 ++-- flexradio/sdr1k.c | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/flexradio/dttsp.c b/flexradio/dttsp.c index 6990b78a1..2a6bf5be4 100644 --- a/flexradio/dttsp.c +++ b/flexradio/dttsp.c @@ -343,11 +343,11 @@ static int fetch_meter(RIG *rig, int *label, float *data, int npts) { struct dttsp_priv_data *priv = (struct dttsp_priv_data *)rig->state.priv; int ret, buf_len; - char buf[sizeof(float)*MAXMETERPTS * MAXRX]; if (priv->meter_port.type.rig == RIG_PORT_UDP_NETWORK) { - buf_len = sizeof(int) + npts * sizeof(float); + char buf[sizeof(float)*MAXMETERPTS * MAXRX]; + buf_len = sizeof(buf); ret = read_block(&priv->meter_port, buf, buf_len); diff --git a/flexradio/sdr1k.c b/flexradio/sdr1k.c index 4962a65d3..ad67486bb 100644 --- a/flexradio/sdr1k.c +++ b/flexradio/sdr1k.c @@ -306,7 +306,9 @@ int sdr1k_set_freq(RIG *rig, vfo_t vfo, freq_t freq) double ftw; double DDS_step_size; freq_t frqval; - int spur_red = 1; +// why is spur_red always true? +// int spur_red = 1; +#define spur_red 1 int ret; ret = set_band(rig, freq); @@ -324,6 +326,7 @@ int sdr1k_set_freq(RIG *rig, vfo_t vfo, freq_t freq) DDS_step_size, (double)freq / DDS_step_size, rint((double)freq / DDS_step_size)); + // why is spur_red always true? if (spur_red) { frqval = (freq_t)(DDS_step_size * rint((double)freq / DDS_step_size));