supplierdeeply

Show misc. values changed - how can I see phys_status values?

  • 1 Replies
  • 1434 Views
*

Offline zeno

  • *****
  • 884
Show misc. values changed - how can I see phys_status values?
« on: 31 / December / 2008, 12:39:41 »
Advertisements
Sometime in the last few months the code in gui.c that handles debug_vals_show has been altered so that it no longer shows the values of the phys_status bytes (it now shows get_usb_power, focus_busy etc - the old coe has been commented out).

I really need the old behaviour (which made it possible to figure out how to turn the 'mode dial' under script control - see CHDK Control of the Mode Dial for A570IS ). I'd like to try and this capability to the G9 for Jim (who started the mode dial thread and now has a G9).

I could produce a special build to re-instate the old behaviour, but I suspect there's an easiert way of getting the info. Does anyone know how?
A570, S100, Ixus 127
Author of ASSIST, STICK, WASP, ACID, SDMInst, LICKS, WICKS, MacBoot, UBDB, CFGEdit

*

Offline reyalp

  • ******
  • 11586
Re: Show misc. values changed - how can I see phys_status values?
« Reply #1 on: 31 / December / 2008, 17:24:15 »
My impression was that debug values were just there so you could watch whatever you want with a quick change in the source. So using a custom build would be the correct thing to do.

You could also use peek() to examine physw_status in a lua script. For example, record all the values of physw_status every time the script is run, then run the script in each mode dial position.
Don't forget what the H stands for.

 

Related Topics