How to save battery life on S90 while taking 1 picture every 5' - page 2 - General Help and Assistance on using CHDK stable releases - CHDK Forum

How to save battery life on S90 while taking 1 picture every 5'

  • 13 Replies
  • 3025 Views
*

Offline reyalp

  • ******
  • 12434
Re: How to save battery life on S90 while taking 1 picture every 5'
« Reply #10 on: 22 / September / 2016, 16:54:56 »
Advertisements
Sorry for the mistake. I confirm it is a S90.
Firmware is 1.01c
CHDK 1.4.1-4678
Thanks. Here's a test build for s90 101c. It doesn't have a fix, but it will help me debug. After loading the build, please go to Miscellaneous->modules in the CHDK menu and enable module logging.

Then restart the camera and run a script that triggers the crash. Get the romlog again, and upload both the romlog and the modules.log here.
Don't forget what the H stands for.

Re: How to save battery life on S90 while taking 1 picture every 5'
« Reply #11 on: 23 / September / 2016, 08:35:06 »
Please find attached the requested files.
Hope I did not make a stupid mistake somewhere and wasting your time.

Let me know if you need anything else.

Below the ubasic script used (it is "crashing" right after the first sleep 5000)

@title set rec/play demo
@param a 0=play 1=rec
@default a 0

gosub "getrec"
print "rec mode",m
print "new rec mode",a
sleep 5000
set_record a
sleep 2000
gosub "getrec"
print "rec mode",m
sleep 1000
end

rem note get_mode returns 0 for rec, 1 for play 2 for movie
:getrec
if get_mode=1 then
   m=0
else
   m=1
endif
return

*

Offline reyalp

  • ******
  • 12434
Re: How to save battery life on S90 while taking 1 picture every 5'
« Reply #12 on: 23 / September / 2016, 23:29:14 »
Thanks. Looks like this was a bug that only affected the 101c port. It should be fixed in autobuild 4691 and later. Let me know if it isn't.
Don't forget what the H stands for.

Re: How to save battery life on S90 while taking 1 picture every 5'
« Reply #13 on: 24 / September / 2016, 01:23:21 »
Thanks! I tested setrec.bas and it is working fine now. Will do new tests on my bicycle soon...


 

Related Topics