Old tsvstar-uitest branch,1.2.0-r2198 works without problems,I don't know why.
Time required varies depending on conditions, nothing to do with the CHDK build. I really doubt the CHDK build actually matters, there is no plausible mechanism. As I said before CHDK isn't involved in the actual focusing process at all, it just holds the key down.
The fact that it takes 3 seconds to do it means your camera is really struggling to focus, so large variations aren't a surprise.
I'll could make the half press timeout longer, or adjustable. 1 second was just something that seemed reasonable.
If you want to adjust it, you can change 100 in the following code in gui.lua (near line 400 in the current trunk)
repeat
sleep(10)
n = n + 1
until get_shooting() == true or n > 100
release("shoot_half")
The number is 100ths of second, since the sleeps are 10ms.
I can reproduce the behaviour blackhole demonstrates in his video, on my G12 (although not 100%).
These steps will reproduce the effect:
- connect with chdkptp, change to REC mode
- set camera to Macro focus mode
- press 'shutter half press' button in chdkptp and focus on an object ~30cm away
- place an object close to the lens (<5cm)
- press 'shutter half press' button in chdkptp
The camera will try and focus on the close object. It appears to set the focus distance; but then suddenly jump back to the previous focus distance that was further away from the camera.
Have not tried old CHDK builds yet.
Phil.