update: Allbest beat me to it, in
Changeset 331 - chdk - Tracplayed around a bit, now both get_jpg_count & get_raw_count work in scripts, so now you can enhance your HDR scripts with a function like: "if raw count < 5 then end" or something, use your imagination.
however, i only achieved this by throwing errors at compile time (after fresh gmake clean), which have to be resolved before i will hand this to allbest.
will atach diff that has my changes from previous post included plus the raw/jpg counter in ubasic. in order to use this on your camera, you have to edit your platforms lib.c file (according to what i did to my a620's lib.c).
devs & c gurus, please comment and suggest what should be done to avoid this error, as i hate throwing errors at compilation, even though those are only warnings, not errors.
if these errors have been resolved i consider this thread pretty much done, as soon as it's "bug-free-ness" is confirmed. would have to do another thread about DST, to not mix topics.
errors:
ubasic.c: In function `get_jpg_count_statement':
ubasic.c:1153: warning: implicit declaration of function `GetJpgCount'
ubasic.c: In function `get_raw_count_statement':
ubasic.c:1162: warning: implicit declaration of function `GetRawCount'
lib.c: In function `camera_jpeg_count_str':
lib.c:64: warning: return makes pointer from integer without a cast
In file included from wrappers.c:1:
../generic/wrappers.c: In function `GetJpgCount':
../generic/wrappers.c:451: warning: return makes integer from pointer without a cast
gui_osd.c: In function `gui_osd_draw_raw_info':
gui_osd.c:655: warning: assignment makes integer from pointer without a cast
i'm sure this is just a small issue for you guys. also i didnt feel so well to include stdlib in lib.c, any opinions on that?