Read about our upcoming Code of Conduct on this issue

Commit 88105657 authored by Roald Frederickx's avatar Roald Frederickx
Browse files

fixed bug wrt remote audio trigger and self timer

--HG--
branch : 550d
parent 7b5fdb02bff8
......@@ -3079,6 +3079,13 @@ shoot_task( void* unused )
if (audio_levels[0].peak > audio_levels[0].avg * (int)audio_release_level)
{
remote_shot();
msleep(100);
/* Initial forced sleep is necesarry when using camera self timer,
* otherwise remote_shot returns right after the countdown
* and the loop below seems to miss the actual picture taking.
* This means we will trigger again on the sound of the shutter
* (and again, and again, ...)
* TODO: should this be fixed in remote_shot itself? */
while (lens_info.job_state) msleep(100);
}
}
......
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