Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-apps-imgsrv
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-apps-imgsrv
Commits
bcfee1c0
Commit
bcfee1c0
authored
Oct 28, 2016
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added retriggering option
parent
f90fa3fe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
imgsrv.c
src/imgsrv.c
+2
-7
No files found.
src/imgsrv.c
View file @
bcfee1c0
...
...
@@ -1349,13 +1349,8 @@ void listener_loop(struct file_set *fset)
(
lseek
(
fset
->
circbuf_fd
,
LSEEK_CIRC_VALID
,
SEEK_END
)
>=
0
))
// test valid once again, after not ready - it might change
this_p
=
lseek
(
fset
->
circbuf_fd
,
LSEEK_CIRC_WAIT
,
SEEK_END
);
}
else
if
(
strcmp
(
cp1
,
"trig"
)
==
0
)
{
int
fd_fpga
=
open
(
"/dev/fpgaio"
,
O_RDWR
);
if
(
fd_fpga
>=
0
)
{
lseek
(
fd_fpga
,
0x7b
,
SEEK_SET
);
///@todo Remove absolute register address from user application! 32-bit registers, not bytes
long
data
=
1
;
write
(
fd_fpga
,
&
data
,
4
);
// actually send the trigger pulse (will leave camera in single-shot mode)
close
(
fd_fpga
);
}
lseek
(
fset
->
framepars_dev_fd
,
LSEEK_DMA_INIT
,
SEEK_END
);
// LSEEK_DMA_INIT is currently used as trigger restart in NC393
fprintf
(
stderr
,
"Retriggering camera
\n
"
,
cp1
);
}
else
if
(
strcmp
(
cp1
,
"favicon.ico"
)
==
0
)
{
// ignore silently - for now, later make an icon?
}
else
{
...
...
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