Commit abce15f8 authored by Tomasz Wlostowski's avatar Tomasz Wlostowski

tools/fmc-fdelay-pulse: don't show excessive information unless asked to by -v option

parent 1d0e0ab0
......@@ -354,9 +354,13 @@ int main(int argc, char **argv)
}
/* Report to user how parsing turned out to be */
tools_report_time("start time: ", &p.start, TOOLS_UMODE_USER);
tools_report_time("pulse width:", &t_width, TOOLS_UMODE_USER);
tools_report_time("period: ", &p.loop, TOOLS_UMODE_USER);
if(verbose)
{
printf("Parsed times:\n");
tools_report_time(" start time: ", &p.start, TOOLS_UMODE_USER);
tools_report_time(" pulse width:", &t_width, TOOLS_UMODE_USER);
tools_report_time(" period: ", &p.loop, TOOLS_UMODE_USER);
}
/* End is start + width, in every situation */
p.end = ts_add(p.start, t_width);
......@@ -367,10 +371,9 @@ int main(int argc, char **argv)
/* Done. Report verbosely and activate the information we parsed */
channel = FDELAY_OUTPUT_USER_TO_HW(channel);
if (verbose) {
report_output_config(channel, &p, TOOLS_UMODE_USER);
// tools_report_action(channel, &p, TOOLS_UMODE_RAW);
}
report_output_config(channel, &p, TOOLS_UMODE_USER);
if (fdelay_config_pulse(b, channel, &p) < 0) {
fprintf(stderr, "%s: fdelay_config_pulse(): %s\n",
argv[0], strerror(errno));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment