Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
magic-lantern
magic-lantern
Commits
7d5c523486f7
Commit
07e4ab4a
authored
Sep 04, 2018
by
alex@thinkpad
Browse files
api_test.lua: skip testing with focus step size 1
(too slow and may fail on certain lenses) --HG-- branch : lua_fix
parent
3943fefd3db2
Changes
1
Show whitespace changes
Inline
Side-by-side
scripts/api_test.lua
View file @
7d5c5234
...
...
@@ -1309,7 +1309,8 @@ function test_lens_focus()
printf
(
"Focus distance: %s\n"
,
lens
.
focus_distance
)
printf
(
"Focus motor position: %d\n"
,
lens
.
focus_pos
)
for
i
,
step
in
pairs
{
3
,
2
,
1
}
do
-- step size 1 may be too slow or may fail on certain lenses
for
i
,
step
in
pairs
{
3
,
2
}
do
-- pairs{3,2,1} to run the full test
for
j
,
wait
in
pairs
{
true
,
false
}
do
printf
(
"Focusing forward with step size %d, wait=%s...\n"
,
step
,
wait
)
local
steps_front
=
0
...
...
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