Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-apps-camogm
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-camogm
Commits
824e2f22
Commit
824e2f22
authored
Jun 27, 2016
by
Mikhail Karpenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch to a reading state
parent
af2b156c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
camogm.c
camogm.c
+8
-3
No files found.
camogm.c
View file @
824e2f22
...
...
@@ -1315,9 +1315,11 @@ int parse_cmd(camogm_state *state, FILE* npipe)
}
return
28
;
}
else
if
(
strcmp
(
cmd
,
"rawdev_read"
)
==
0
)
{
if
(
state
->
rawdev_op
)
// camogm_read(state);
build_index
(
state
);
if
(
state
->
rawdev_op
&&
state
->
prog_state
==
STATE_STOPPED
)
{
state
->
prog_state
=
STATE_READING
;
}
else
{
D0
(
fprintf
(
debug_file
,
"Unable to switch state to 'reading' from current state. Check settings.
\n
"
));
}
return
29
;
}
...
...
@@ -1468,6 +1470,9 @@ int listener_loop(camogm_state *state)
}
// switch camogm_start()
if
((
rslt
!=
0
)
&&
(
rslt
!=
CAMOGM_TOO_EARLY
)
&&
(
rslt
!=
CAMOGM_FRAME_NOT_READY
)
&&
(
rslt
!=
CAMOGM_FRAME_CHANGED
)
)
state
->
last_error_code
=
rslt
;
}
else
if
(
state
->
prog_state
==
STATE_READING
)
{
build_index
(
state
);
state
->
prog_state
=
STATE_STOPPED
;
}
else
{
// not running, not starting
usleep
(
COMMAND_LOOP_DELAY
);
// make it longer but interruptible by signals?
}
...
...
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