Changeset 1065


Ignore:
Timestamp:
02/19/11 22:29:37 (2 years ago)
Author:
reyalP
Message:

g12 and sx30 updates from philmoz in http://chdk.setepontos.com/index.php?topic=650.msg61729#msg61729

  • fixed 'off by 1' mistake in get_focal_length (main.c) for both cameras.
  • moved the call to 'capt_seq_hook_raw_here' to fix problem with exposures longer than 1 second not saving RAW/DNG file.
Location:
trunk/platform
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/platform/g12/main.c

    r1008 r1065  
    5656int get_focal_length(int zp) { 
    5757        if (zp < 0) zp = 0; 
    58         else if (zp > NUM_FL) zp = NUM_FL; 
     58        else if (zp >= NUM_FL) zp = NUM_FL-1; 
    5959        return focus_len_table[zp*3]; 
    6060} 
  • trunk/platform/g12/sub/100c/capt_seq.c

    r1017 r1065  
    605605"                MOV     R0, R5 \n" 
    606606"                BL      sub_FFB07624 \n" 
    607  
    608 "               BL      capt_seq_hook_raw_here\n"               // added 
    609  
    610607"                B       loc_FFB0788C \n" 
    611608 
     
    626623 
    627624"loc_FFB0788C: \n" 
     625 
     626"               BL      capt_seq_hook_raw_here\n"               // added (16/2/2011, moved here so that long exposures work) 
     627 
    628628"                MOV     R6, R0 \n" 
    629629"                B       loc_FFB078BC \n" 
  • trunk/platform/g12/sub/100e/capt_seq.c

    r1019 r1065  
    606606"                MOV     R0, R5 \n" 
    607607"                BL      sub_FFB077D4 \n" 
    608  
    609 "               BL      capt_seq_hook_raw_here\n"               // added 
    610  
    611608"                B       loc_FFB07A3C \n" 
    612609 
     
    627624 
    628625"loc_FFB07A3C: \n" 
     626 
     627"               BL      capt_seq_hook_raw_here\n"               // added (16/2/2011, moved here so that long exposures work) 
     628 
    629629"                MOV     R6, R0 \n" 
    630630"                B       loc_FFB07A6C \n" 
  • trunk/platform/sx30/main.c

    r1008 r1065  
    5858int get_focal_length(int zp) { 
    5959        if (zp < 0) zp = 0; 
    60         else if (zp > NUM_FL) zp = NUM_FL; 
     60        else if (zp >= NUM_FL) zp = NUM_FL-1; 
    6161        return focus_len_table[zp]; 
    6262} 
  • trunk/platform/sx30/sub/100e/capt_seq.c

    r1008 r1065  
    522522"                MOV     R0, R5 \n" 
    523523"                BL      sub_FFAEC8A0 \n" 
    524  
    525 "               BL      capt_seq_hook_raw_here\n"               // added 
    526  
    527524"                B       loc_FFAECB08 \n" 
    528525 
     
    543540 
    544541"loc_FFAECB08: \n" 
     542 
     543"               BL      capt_seq_hook_raw_here\n"               // added (16/2/2011, moved here so that long exposures work) 
     544 
    545545"                MOV     R6, R0 \n" 
    546546"                B       loc_FFAECB38 \n" 
  • trunk/platform/sx30/sub/100h/capt_seq.c

    r1008 r1065  
    522522"                MOV     R0, R5 \n" 
    523523"                BL      sub_FFAEC95C \n" 
    524  
    525 "               BL      capt_seq_hook_raw_here\n"               // added 
    526  
    527524"                B       loc_FFAECBC4 \n" 
    528525 
     
    543540 
    544541"loc_FFAECBC4: \n" 
     542 
     543"               BL      capt_seq_hook_raw_here\n"               // added (16/2/2011, moved here so that long exposures work) 
     544 
    545545"                MOV     R6, R0 \n" 
    546546"                B       loc_FFAECBF4 \n" 
  • trunk/platform/sx30/sub/100l/capt_seq.c

    r1008 r1065  
    522522"                MOV     R0, R5 \n" 
    523523"                BL      sub_FFAECB04 \n" 
    524  
    525 "               BL      capt_seq_hook_raw_here\n"               // added 
    526  
    527524"                B       loc_FFAECD6C \n" 
    528525 
     
    543540 
    544541"loc_FFAECD6C: \n" 
     542 
     543"               BL      capt_seq_hook_raw_here\n"               // added (16/2/2011, moved here so that long exposures work) 
     544 
    545545"                MOV     R6, R0 \n" 
    546546"                B       loc_FFAECD9C \n" 
Note: See TracChangeset for help on using the changeset viewer.