[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Battery levels
From: |
Daniele Forsi |
Subject: |
Re: Battery levels |
Date: |
Thu, 1 Nov 2007 21:07:18 +0100 |
User-agent: |
KMail/1.9.4 |
Alle 20:40, giovedì 1 novembre 2007, Bastien Nocera ha scritto:
> On Thu, 2007-11-01 at 20:07 +0100, Pawel Kot wrote:
>
> > In other words libgnokii is expected the output value as a percentage
> > of maximum value.
>
> So the battery level is _always_ a percentage?
no, some drivers currently use GN_BU_Arbitrary, but we can change that:
$ grep -n "Battery level units" common/phones/*.c
[...]
common/phones/nk3110.c:149: GN_BU_Arbitrary, /* Battery level units */
common/phones/nk6100.c:196: GN_BU_Arbitrary, /* Battery level units */
common/phones/nk6160.c:90: GN_BU_Arbitrary, /* Battery level units */
[...]
--
Daniele