new branch - CHDK : Elf Edition - Developers wanted

  • 302 Replies
  • 49571 Views
*

Offline srsa_4c

  • ******
  • 3665
Re: new branch - CHDK : Elf Edition - Developers wanted
« Reply #300 on: 21 / February / 2015, 17:08:01 »
Advertisements
Slightly different approach.
This is more generic, the rules for your modules are confined to the new makefile and can include other files if needed.
Thanks, that's much more elegant and more versatile. Please check it in if it's final.

*

Offline philmoz

  • *****
  • 3070
    • Photos
Re: new branch - CHDK : Elf Edition - Developers wanted
« Reply #301 on: 21 / February / 2015, 17:29:08 »
Slightly different approach.
This is more generic, the rules for your modules are confined to the new makefile and can include other files if needed.
Thanks, that's much more elegant and more versatile. Please check it in if it's final.

In revision 4031.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)

*

Offline srsa_4c

  • ******
  • 3665
Re: new branch - CHDK : Elf Edition - Developers wanted
« Reply #302 on: 24 / September / 2015, 18:42:46 »
A note for those (including myself) who try to use a GUI module in their code:
When a module's init function is called, it will not block until the module is unloaded.
The init function will just return immediately and the caller's draw and keyboard callbacks will only be called again once the called module exits.
So, the following code is not suitable for enforcing limits on 'demo_var':
Code: [Select]
    libhexbox->hexbox_init( (int*)&demo_var, "Demo variable, enter 0-9", 0 );
    if (demo_var > 9)
        demo_var = 9;

 

Related Topics