Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC ADC 100M 14b 4cha - Software
Commits
74b4540a
Commit
74b4540a
authored
Apr 25, 2014
by
Michel Arruat
Committed by
Federico Vaga
Apr 30, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fald-acq: try to start until success
parent
0dfde2b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
fald-acq.c
libtools/fald-acq.c
+12
-5
No files found.
libtools/fald-acq.c
View file @
74b4540a
...
...
@@ -361,11 +361,18 @@ void start_adc(char *called_from, int flag)
fald_print_debug
(
"%s : call fmcadc_acq_start with %s
\n
"
,
called_from
,
((
flag
)
?
"flush"
:
"no flush"
));
err
=
fmcadc_acq_start
(
adc
,
flag
,
&
tv
);
if
(
err
)
{
fprintf
(
stderr
,
"%s: cannot start acquisition: %s
\n
"
,
_argv
[
0
],
fmcadc_strerror
(
errno
));
exit
(
1
);
err
=
-
1
;
while
(
err
)
{
err
=
fmcadc_acq_start
(
adc
,
flag
,
&
tv
);
if
(
err
)
{
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 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment