Reverse CHDK boot button behaviour - stops loooooong press on/off

  • 14 Replies
  • 3047 Views
*

Offline whim

  • ******
  • 2013
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: Reverse CHDK boot button behaviour - stops loooooong press on/off
« Reply #10 on: 12 / November / 2009, 10:35:06 »
Advertisements
@peregrine

OK, here's what i found:

1. the patch is successfully applied
2. on compilation, the #ifdef .... #else ... #endif somehow does not get properly interpreted   ???
3. if i take out the #ifdef etc. (just leaving the code line for reverse boot behaviour) it works ???

i'm now preparing a new patch (against 836 of course) that ONLY changes the actual code line
in boot.c ...

wim

Re: Reverse CHDK boot button behaviour - stops loooooong press on/off
« Reply #11 on: 12 / November / 2009, 11:44:05 »
Thank you whim for taking trouble to check the patch again  :)

*

Offline reyalp

  • ******
  • 10069
Re: Reverse CHDK boot button behaviour - stops loooooong press on/off
« Reply #12 on: 12 / November / 2009, 16:47:57 »
@peregrine

OK, here's what i found:

1. the patch is successfully applied
2. on compilation, the #ifdef .... #else ... #endif somehow does not get properly interpreted   ???
3. if i take out the #ifdef etc. (just leaving the code line for reverse boot behaviour) it works ???
The -D blah blah is must not be passed correctly into CFLAGS.
Don't forget what the H stands for.

*

Offline whim

  • ******
  • 2013
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: Reverse CHDK boot button behaviour - stops loooooong press on/off
« Reply #13 on: 13 / November / 2009, 08:08:19 »
I just ripped out the whole OPT_blah stuff, in the hope that that will make
the patches more 'resistant' (i don't much fancy updating this, because i
don't use this myself)

all it now does is this (example for SX200IS)
Quote
.....
-   *(int*)(0x24C0+4)= (*(int*)0xC0220128)&1 ? 0x2000000 : 0x1000000; // replacement of sub_FF821BD4 for correct power-on.
+// reverses the boot logic: cam starts in REC/SHOOT mode unless PLAY button long pressed
+   *(int*)(0x24C0+4)= (*(int*)0xC0220128)&1 ? 0x1000000 : 0x2000000; // replacement of sub_FF821BD4 for correct power-on.
+// normal boot logic: cam starts in PLAY/REVIEW mode unless ON/OFF button long pressed
+//    *(int*)(0x24C0+4)= (*(int*)0xC0220128)&1 ? 0x2000000 : 0x1000000; // replacement of sub_FF821BD4 for correct power-on.
.....

i also added separate files for each supported cam, and expanded the readme ('patching.txt')
tested on ixus870_sd880 101a

wim
« Last Edit: 13 / November / 2009, 09:36:26 by whim »


Re: Reverse CHDK boot button behaviour - stops loooooong press on/off
« Reply #14 on: 13 / November / 2009, 13:31:48 »
 Tested and working on Sx200is  :D

 

Related Topics