Hey, I know the answer to this one! For some reason, Palm decided to alter the % range 
of this function according to this algorithm:

percentage = truePercentage;
if (percentage >= 90%)
        percentage = 100%;

Thus, the only readings you'll ever see are b/w 0-89 or 100%. I think that this 
happened in 3.1.

Enjoy!
Alan

>One other thing. I'm not sure that this is a real problem.  I just put new
>batteries in my Palm.  Right now they register 2.82V and I am still getting
>100%.  If this is OK, then I don't have a problem :).
>
>Mike McCollister
>
>>
>> Hi,
>>
>> I have written a program that will set the battery type (i.e.
>> alkaline,
>> NiCad, etc.). using this call:
>>
>> SysBatteryInfo(true, NULL, NULL, NULL, &batteryKind, NULL, NULL);
>>
>> However, I find that my Palm now states that the percentage
>> is always 100%
>> (even in other applications).  I know that the manual states
>> not to set the
>> first parameter to "true" and try to set these values, but I was being
>> daring.  So, here are my questions:
>>
>> 1) How do I properly set the battery kind/type without messing up the
>> battery percentage level?
>>
>> 2) Now that I have messed it up, how do I fix it?
>>
>> 3) How come the .7 shortcut did not mess up my percentage?
>>
>> If at all possible, please send a copy of your response to
>> [EMAIL PROTECTED] since I wont be at this address until Friday.
>>
>> Thanks,
>>
>> Mike McCollister
>>
>> --
>> For information on using the Palm Developer Forums, or to
>> unsubscribe, please see http://www.palm.com/devzone/mailinglists.html
>>
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe, please see 
>http://www.palm.com/devzone/mailinglists.html


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to