I have a timelapse script that is crashing my camera.
It seems that if I call set_aflock while the LCD is off the camera just turns off.
I've set the LCD off time on the camera to 3 minutes to deal with the problem so far, but I'm trying to do a really long time lapse (2-3months) and I can't get the script to keep running.
I also noticed the camera turns off at the same point if I plug in an AV cable.
Cannon A470 1.01B, CHDK 0.9.9 build 958 and 1064
Is there a command I can run to wake the camera up so that the set_aflock will not crash, or does anyone have any other ideas?
This simple script demonstrates the problem:
--[[
Script demonstrates the crash condition
]]
--[[
@title crashtest
--]]
print("Focus")
-- Set and lock focus.
set_aflock(1)
sleep(1000)
print("shoot")
shoot()
sleep (20000)
print("refocus")
-- Camera turns off here.
set_aflock(1)
sleep(1000)
print("shoot")
shoot()