gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Battery levels


From: Pawel Kot
Subject: Re: Battery levels
Date: Thu, 1 Nov 2007 21:20:08 +0100

Hi,

On 11/1/07, Bastien Nocera <address@hidden> wrote:
>
> On Thu, 2007-11-01 at 20:07 +0100, Pawel Kot wrote:
> <snip>
> > In other words libgnokii is expected the output value as a percentage
> > of maximum value.
>
> So the battery level is _always_ a percentage? That would certainly make
> it easier. I don't think I could easily show to the user that it's not a
> "real" percentage, but I'm not sure it matters that much.

It depends on gn_phone->battery_level_unit. I think nk6510 and atgen
use GN_BU_Percentage, so for most of the phones that would be fine.
All possible units are defined in include/gnokii/common.h:
/* Define enums for Battery units. */
typedef enum {
        GN_BU_Arbitrary,
        GN_BU_Volts,
        GN_BU_Minutes,
        GN_BU_Percentage
} gn_battery_unit;

Similiar thing is for rf level.

take care,
pkot
-- 
Pawel Kot




reply via email to

[Prev in Thread] Current Thread [Next in Thread]