Commit 74b4540a authored by Michel Arruat's avatar Michel Arruat Committed by Federico Vaga

fald-acq: try to start until success

parent 0dfde2b6
...@@ -361,11 +361,18 @@ void start_adc(char *called_from, int flag) ...@@ -361,11 +361,18 @@ void start_adc(char *called_from, int flag)
fald_print_debug("%s : call fmcadc_acq_start with %s\n", fald_print_debug("%s : call fmcadc_acq_start with %s\n",
called_from, ((flag) ? "flush" : "no flush")); called_from, ((flag) ? "flush" : "no flush"));
err = fmcadc_acq_start(adc, flag, &tv); err = -1;
if (err) { while (err) {
fprintf(stderr, "%s: cannot start acquisition: %s\n", err = fmcadc_acq_start(adc, flag, &tv);
_argv[0], fmcadc_strerror(errno)); if (err) {
exit(1); fprintf(stderr, "%s: cannot start acquisition: %s\n",
_argv[0], fmcadc_strerror(errno));
// exit(1);
/* Instead of leaving try another stop/start sequence */
stop_adc("start_adc");
/* give a chance to breath in case the error persists */
sleep(1);
}
} }
/* Start the poll */ /* Start the poll */
......
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