Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC TDC 1ns 5cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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 TDC 1ns 5cha - Software
Commits
6d0e56cd
Commit
6d0e56cd
authored
Jul 22, 2015
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib: fix properly save next time stamp on read
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
ef43c88d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
fmctdc-lib.c
lib/fmctdc-lib.c
+6
-6
No files found.
lib/fmctdc-lib.c
View file @
6d0e56cd
...
...
@@ -649,12 +649,12 @@ int fmctdc_read(struct fmctdc_board *userb, unsigned int channel,
if
(
j
==
sizeof
(
ctrl
))
{
/* one sample: pick it */
attrs
=
ctrl
.
attr_channel
.
ext_val
;
t
->
seconds
=
ctrl
.
tstamp
.
secs
;
t
->
coarse
=
ctrl
.
tstamp
.
ticks
;
t
->
frac
=
ctrl
.
tstamp
.
bins
;
t
->
seq_id
=
ctrl
.
seq_num
;
t
->
gseq_id
=
attrs
[
FT_ATTR_DEV_SEQUENCE
];
t
->
ref_gseq_id
=
attrs
[
FT_ATTR_TDC_DELAY_REF_SEQ
];
t
[
i
].
seconds
=
ctrl
.
tstamp
.
secs
;
t
[
i
].
coarse
=
ctrl
.
tstamp
.
ticks
;
t
[
i
].
frac
=
ctrl
.
tstamp
.
bins
;
t
[
i
].
seq_id
=
ctrl
.
seq_num
;
t
[
i
].
gseq_id
=
attrs
[
FT_ATTR_DEV_SEQUENCE
];
t
[
i
].
ref_gseq_id
=
attrs
[
FT_ATTR_TDC_DELAY_REF_SEQ
];
i
++
;
/* Consume also the data even if it is empty,
...
...
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