As I mentioned before, the double shot means the raw hook is not being called. This is a major problem in the port, so I'd suggest focusing on that before worrying too much about remote shoot. The missing hook and multiple shots could cause problems with remoteshoot even if the filewrite stuff was totally correct.
Here is test version with the modified capt_seq.c file.
Can anyone check if it's okay?
Thanks to you guys for trying to help fix this. @blackhole, the attached build fails hooktest.lua in my cam, run from chdk gui/scripts - it fails the same way my build does. Log attached.
I have stripped my build down to only boot, and capt_seq.
Temporary, I have not inserted shooting_expo_param_override.
The only hooks I try to set are ref=0 for quick press & remote, and ref=1 for main capt_seq hook.
Obviously I cannot see another possible branch for the main hook section; and cannot see a branch inside that main hook section that might carry me further.
Funny thing, if I knew more I might understand it. The code section for this ixus175 main hook is "too small" compared to ixus160 and sx530hs. Those 2 (working good) cams have many sequences of
/* SsCaptureCtrl.c */ the canon routine
...
_ClearEventFlag
before the main hook is placed.
In this 175, there is only a single in sequence of SsCaptureCrrl/_ClearEventFlag there.. It is ref=1, but may not actually be the 'main' section..?