On Fri, 16 Apr 1999, Steve Lemke wrote:
> At 11:09 AM -0500 4/15/99, Alan Pinstein wrote:
> >I am using this call do get the % for an app. I have noticed something
> >odd... my voltage is about 2.65, and is about 85%. BUT if I repeatedly
> >reload the % from SysBatteryInfo, sometimes it returns 100%. Has anyone
> >else seen this?
>
> Batteries that read above "90%" (typically "new" batteries) are
> rounded up to display 100%.
but that does not explain why if he reads the battery voltage
once - he gets 85%, and if he reads it repeatively it changes
to 100%.
what would happen if the voltage was 30%? and then it was
repeatedly checked? would it still return 100%?
i guess you are zapping the battery for information too
fast - and hence it gets hot (and fools to Palm to think
it is full?)
it is a pity that decay of batteries of not linear.. :))
why would one want to check the battery info in an application
anyhow? (for programs other than system information of course)..
just imagine it.. a game that starts up and says:
"ps: you only have 15 minutes of play time
before the battery dies"
is there an API routine to check if the backdisplay is lit? (you
could also add this to your calculation of time left) :>
cheers.
az.
--
Aaron Ardiri
Lecturer http://www.hig.se/~ardiri/
University-College i G�vle mailto:[EMAIL PROTECTED]
SE 801 76 G�vle SWEDEN
Tel: +46 26 64 87 38 Fax: +46 26 64 87 88
Mob: +46 70 352 8192 A/H: +46 26 10 16 11