Commit 1452731e authored by alex@thinkpad's avatar alex@thinkpad
Browse files

Lua lens.focus: warn if continuous AF / movie servo AF are enabled in Canon menu

--HG--
branch : lua_fix
parent 39429e511734
......@@ -119,6 +119,7 @@ static int luaCB_lens_focus(lua_State * L)
if (!lv) return luaL_error(L, "lens.focus() only works in LiveView.");
if (is_manual_focus()) return luaL_error(L, "lens.focus() requires autofocus enabled.");
if (is_continuous_af()) return luaL_error(L, "lens.focus() requires %s AF disabled.", is_movie_mode() ? "movie servo" : "continuous");
lua_pushboolean(L, lens_focus(num_steps, step_size, wait, delay));
......
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