Commit d142228b authored by alex@thinkpad's avatar alex@thinkpad
Browse files

api_test.lua: when requesting a different video mode, wait for user to finish navigating menus

(e.g. on 5D2, switching between movie and photo mode is done from Canon menu)

--HG--
branch : lua_fix
parent 7d5c523486f7
......@@ -22,14 +22,16 @@ function alert()
end
function request_mode(mode, mode_str)
while camera.mode ~= mode do
if camera.mode ~= mode or not camera.gui.idle then
printf("Please switch to %s mode.\n", mode_str, mode)
while camera.mode ~= mode do
while camera.mode ~= mode or not camera.gui.idle do
console.show(); assert(console.visible)
if camera.gui.idle then alert() end
sleep(1)
alert()
end
end
sleep(2)
end
function round(x)
......
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