Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-elphel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
linux-elphel
Commits
6e83fec5
Commit
6e83fec5
authored
Nov 11, 2016
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Plain Diff
merged with framepars, TRIGGER_PERIOD=0
parents
58da2aa7
168fe2f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
pgm_functions.c
src/drivers/elphel/pgm_functions.c
+2
-1
No files found.
src/drivers/elphel/pgm_functions.c
View file @
6e83fec5
...
...
@@ -1264,7 +1264,7 @@ int pgm_limitfps (int sensor_port, ///< sensor port number (0..3
dev_dbg
(
g_dev_ptr
,
"{%d} P_CLK_SENSOR == 0, abort command
\n
"
,
sensor_port
);
return
-
1
;
}
if
(
thispars
->
pars
[
P_TRIG_PERIOD
]
!=
1
)
{
// <256 - single trig, here only ==1 is for single
if
(
thispars
->
pars
[
P_TRIG_PERIOD
]
>
1
)
{
// <256 - single trig, here only ==1 is for single
min_period_camsync
=
sensor_to_camsync
(
min_period
,
thispars
->
pars
[
P_CLK_SENSOR
]);
if
(
thispars
->
pars
[
P_TRIG_PERIOD
]
<
min_period_camsync
)
SETFRAMEPARS_SET
(
P_TRIG_PERIOD
,
min_period_camsync
);
// set it (and propagate to the later frames)
// if (async && (thispars->pars[P_FPSFLAGS] & 2) && (thispars->pars[P_TRIG_PERIOD] > period)) {
...
...
@@ -1273,6 +1273,7 @@ int pgm_limitfps (int sensor_port, ///< sensor port number (0..3
if
(
thispars
->
pars
[
P_TRIG_PERIOD
]
>
period_camsync
)
{
SETFRAMEPARS_SET
(
P_TRIG_PERIOD
,
period_camsync
);
// set it (and propagate to the later frames)
MDP
(
DBGB_PADD
,
sensor_port
,
"SETFRAMEPARS_SET(P_TRIG_PERIOD, 0x%x)
\n
"
,
period_camsync
)
dev_dbg
(
g_dev_ptr
,
"{%d} SETFRAMEPARS_SET(P_TRIG_PERIOD, 0x%x) - was too low
\n
"
,
sensor_port
,
period_camsync
);
}
}
}
...
...
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