Changeset 1425


Ignore:
Timestamp:
11/23/11 21:45:17 (18 months ago)
Author:
philmoz
Message:

A few small changes:

  • Fix script menu 'back' option when menu opened using 'Func/Set?' button. Now returns back to <ALT> mode instead of doing nothing.
  • Relax restriction on focus distance override for G12 & G10 when 'Continuous AF' is enabled. Override can be used when camera is in Manual Focus mode.
  • Cleanup some incorrect comments for SX30 and SX40.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/gui_menu.c

    r1422 r1425  
    115115        gui_menu_set_curr_menu(gui_menu_stack[gui_menu_stack_ptr].menu, gui_menu_stack[gui_menu_stack_ptr].toppos, gui_menu_stack[gui_menu_stack_ptr].curpos); 
    116116        gui_menu_erase_and_redraw(); 
     117    } 
     118    else 
     119    { 
     120        // 'Back' selected; but no menu to go back to 
     121        // Occurs when script menu opened using 'Func/Set' button 
     122        // Return to normal <ALT> mode. 
     123        gui_set_mode(GUI_MODE_ALT); 
     124        kbd_reset_autoclicked_key();    // Need this to stop 'Func/Set' registering twice??? 
     125        draw_restore(); 
    117126    } 
    118127} 
  • trunk/platform/generic/wrappers.c

    r1419 r1425  
    256256void lens_set_focus_pos(long newpos) 
    257257{ 
    258 #if defined(CAMERA_g12) || defined(CAMERA_g10)  // G12 & G10 crash if in Continuous AF mode and try to call _MoveFocusLensToDistance 
     258#if defined(CAMERA_g12) || defined(CAMERA_g10)  // G12 & G10 crash if in Continuous AF mode, and not MF, and try to call _MoveFocusLensToDistance 
    259259        int af_mode; 
    260260        get_property_case(PROPCASE_CONTINUOUS_AF,&af_mode,sizeof(af_mode)); 
    261         if (af_mode == 0)       // can only set focus distance when not in continuous AF mode 
     261        if ((af_mode == 0) || (shooting_get_focus_mode() == 1)) // can only set focus distance when MF mode or not in continuous AF mode 
    262262#endif 
    263263        { 
  • trunk/platform/sx30/sub/100h/lib.c

    r1316 r1425  
    5656void *vid_get_viewport_live_fb() 
    5757{ 
     58    // Found by searching RAM locations that referenced 0x40587700 (viewport buffer) 
     59    // and also changed to the other buffer addresses over time. Then used each here 
     60        // and selected value that gave the fastest Motion Detect response using http://dataghost.com/chdk/md_meter.html. 
    5861        return (void*)(*(int*)(0x20C8)); 
    59         //// Values below found by searching firmware for references & usage of viewport buffer address 0x40587700 
    60         //// then experimenting to see what gave best Motion Detector speed results using http://dataghost.com/chdk/md_meter.html. 
    61         //long* t = (long*)0xFFB968C4;                                          // Table of viewport buffer addresses (@FF853F24 in _sub_FF853DC0__LiveImage.c__10) 
    62         //unsigned char i = *((unsigned char*)(0x20a8));                // Index value (byte) stored here (@FF853F50 in _sub_FF853DC0__LiveImage.c__10) 
    63         //return (void*)t[(i-1)&3];                                                     // Appears to be 4 buffers, current index - 1 seems best 
    6462} 
    6563 
  • trunk/platform/sx40hs/sub/100g/boot.c

    r1414 r1425  
    460460 
    461461///*---------------------------------------------------------------------- 
    462 // @ FF8A3B4C 
     462// @ 0xff09bbb0 
    463463void __attribute__((naked,noinline)) init_file_modules_task() { 
    464464 asm volatile( 
Note: See TracChangeset for help on using the changeset viewer.