Another small update for G12 & SX30 (patched against changeset 1067).
- updates for exmem memory allocation to allow these cameras to exclude video buffer memory
- fixed set_zoom function to correctly wait until zoom is finished before returning
- fixed startup code for SX30 so that init_file_modules_task gets called correctly in all cases
- changed startup code for SX30 so that short on/off button press starts in record mode and long press starts in review mode (previously was the other way around).
Added all except for the startup change in
changeset 1068I'm hesitant to add the startup change because
- It's inconsistent with all other cameras.
- Unexpectedly opening the lens is less friendly that unexpectedly not entering REC mode.
I'm open to being convinced otherwise. Ideally this should be a user option, but it happens before we can read the CFG file.
Possible solutions:
1) We now have the ability to switch modes from normal CHDK code. This didn't exist when the "long press to start in rec mode" feature was initially added.
We could check a cfg value in main startup, and switch to the desired mode. We could still capture the button state as early as possible to detect a long / short press. This would probably result in slightly longer startup times, since the camera would start fully in play and then switch to REC.
As an aside, it should be possible to capture the switch state earlier, before copy_and_restart and stash the value somewhere (data TCM ?). This should reduce the length of the required press slightly, not clear if it is worthwhile.
2) Make it a compile time option.
3) store the value somewhere else. This would have to be
- a specific disk sector
- in the CHDK image itself (requiring proper encoding when updating)
- in camera flash
None of these are very attractive.