Does my script work? - Script Writing - CHDK Forum

Does my script work?

  • 2 Replies
  • 1912 Views
Does my script work?
« on: 31 / October / 2014, 15:47:54 »
Advertisements
hello I have written a script to print both the get_usb_power 1 and get_usb_power 2

i just want to confirm that it is working properly, as it is printing 0's for both even when i think voltage is being given

Code: [Select]
@param v voltage
@default v 0
v = get_usb_power 2
z = get_usb_power 1
do
print v;"   ";z
sleep 500
until v=7
end

Re: Does my script work?
« Reply #1 on: 31 / October / 2014, 16:22:45 »
Code: [Select]
@param v voltage
@default v 0
do
v = get_usb_power 2
z = get_usb_power 1
print v;"   ";z
sleep 500
until v=7
end
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Does my script work?
« Reply #2 on: 31 / October / 2014, 17:23:11 »
thanks!

 

Related Topics


SimplePortal © 2008-2014, SimplePortal