Patch to create "Port Under Development" versions.
Motivation: http://chdk.setepontos.com/index.php?topic=10259.msg103774#msg103774
To enable it, add #define UNDER_DEV_PORT 1 in platform_camera.h.
CHDK works normally during 7 days, after that a message will remind user to post feedback.
Thanks to waterwingz for suggestions and test.
I have checked a heavily modified version of this into the trunk,
changeset 3051Both phil and I were uncomfortable effectively making the camera unusable with CHDK after expiration. I think a more moderate nagging will probably be enough for most of the users who would provide useful feedback. You are of course free to do something more aggressive in your own test builds.
The new code works by setting
OPT_EXPIRE_TEST=n
in your localbuildconf.inc to the number of days you want. If you want to do this only for particularly cameras, you can put it under something like
ifeq ($(PLATFORM),d10)
The build will show "TEST BUILD N DAYS LEFT" or "TEST BUILD EXPIRED!" under the splash screen.
After the build expires
1) In alt mode, the same message as the original patch will be shown. The alt mode help screen will not be shown (because it ended up fighting horribly with the nag screen on my camera and I CBA to spend more time on it).
2) In regular canon mode, only the first line will be shown, and it will be on a transparent background.
The message is not displayed when you are in CHDK menus or other GUIs.
I also isolated the expire code so there isn't the mass of ifdef code in the normal code path.