This instance will be upgraded to Heptapod 0.31.0 (final) on 2022-05-24 at 14:00 UTC+2 (a few minutes of down time)

Commit 12ae3bde authored by alex@thinkpad's avatar alex@thinkpad
Browse files

api_test.lua: fix AF test on manual lenses

--HG--
branch : lua_fix
parent 163677f7a4c4
......@@ -752,9 +752,14 @@ function test_lens_focus()
msleep(1000)
end
-- note: some lenses may be able to AF only in LiveView
-- so let's check each mode regardless of the other
if not lv.running then
printf("Autofocus outside LiveView...\n")
assert(lens.autofocus())
if lens.af then
printf("Autofocus outside LiveView...\n")
assert(lens.autofocus())
end
lv.start()
assert(lv.running)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment