forked from Ivasoft/DSView
Fix some compile warnings
This commit is contained in:
@@ -1733,13 +1733,13 @@ static int dso_tune(const struct sr_dev_inst *sdi)
|
||||
else
|
||||
margin -= (devc->mstatus.ch1_acc_mean * 1.0 / devc->limit_samples);
|
||||
|
||||
if ((devc->tune_probe->coupling == SR_AC_COUPLING) && (abs(margin) < 0.5)) {
|
||||
if ((devc->tune_probe->coupling == SR_AC_COUPLING) && (fabs(margin) < 0.5)) {
|
||||
devc->tune_probe->coupling = SR_DC_COUPLING;
|
||||
ret = dsl_wr_dso(sdi, dso_cmd_gen(sdi, devc->tune_probe, SR_CONF_PROBE_COUPLING));
|
||||
} else if (devc->tune_probe->coupling == SR_AC_COUPLING){
|
||||
(devc->tune_probe->vga_ptr+devc->tune_stage)->preoff += margin;
|
||||
ret = dsl_wr_dso(sdi, dso_cmd_gen(sdi, devc->tune_probe, SR_CONF_PROBE_OFFSET));
|
||||
} else if ((devc->tune_probe->coupling == SR_DC_COUPLING) && (abs(margin) < 0.5)) {
|
||||
} else if ((devc->tune_probe->coupling == SR_DC_COUPLING) && (fabs(margin) < 0.5)) {
|
||||
devc->tune_stage++;
|
||||
if (devc->profile->dev_caps.vdivs[devc->tune_stage] != 0) {
|
||||
ret = dsl_wr_ext(sdi, 0x01, mux[devc->tune_stage]);
|
||||
|
||||
@@ -1223,8 +1223,7 @@ struct sr_session {
|
||||
GSList *devs;
|
||||
/** List of struct datafeed_callback pointers. */
|
||||
GSList *datafeed_callbacks;
|
||||
GTimeVal starttime;
|
||||
gboolean running;
|
||||
gboolean running;
|
||||
|
||||
unsigned int num_sources;
|
||||
|
||||
|
||||
@@ -299,7 +299,7 @@ static int cleanup(struct sr_output *o)
|
||||
|
||||
static struct sr_option options[] = {
|
||||
{ "filename", "Filename", "File to write", NULL, NULL },
|
||||
{0}
|
||||
{0, 0, 0, 0, 0}
|
||||
};
|
||||
|
||||
static const struct sr_option *get_options(void)
|
||||
|
||||
Reference in New Issue
Block a user