get_usb_power returns zero on every other attempt to measure PWM - General Help and Assistance on using CHDK stable releases - CHDK Forum

get_usb_power returns zero on every other attempt to measure PWM

  • 0 Replies
  • 745 Views
Advertisements
Tried with latest build:s100-102a-1.2.0-3456 
zero on every other attempt to measure PWM , earlier build delivered 3-4 zeros for every value.  - before that - there were no zeros.
(I measure PWM between 10-150ms)

Code: [Select]
    repeat
sleep(60)
x=get_usb_power(0)
print (x)
    until

I workaround this by having "until x>0"

 

Related Topics