[PATCH] fix recognition of lithium iron phosphate (LiFePO4) batteries

Richard Hughes hughsient at gmail.com
Mon May 3 07:18:41 PDT 2010


On 1 May 2010 17:44, Sascha Silbe <sascha-pgp at silbe.org> wrote:
> diff --git a/src/linux/up-device-supply.c b/src/linux/up-device-supply.c
> index 173959a..cb5903b 100644
> --- a/src/linux/up-device-supply.c
> +++ b/src/linux/up-device-supply.c
> @@ -269,7 +269,7 @@ up_device_supply_convert_device_technology (const gchar *type)
>                return UP_DEVICE_TECHNOLOGY_LITHIUM_POLYMER;
>        if (g_ascii_strcasecmp (type, "nimh") == 0)
>                return UP_DEVICE_TECHNOLOGY_NICKEL_METAL_HYDRIDE;
> -       if (g_ascii_strcasecmp (type, "lifo") == 0)
> +       if (g_ascii_strcasecmp (type, "life") == 0)
>                return UP_DEVICE_TECHNOLOGY_LITHIUM_IRON_PHOSPHATE;
>        return UP_DEVICE_TECHNOLOGY_UNKNOWN;
>  }

Applied, many thanks.

Richard.


More information about the devkit-devel mailing list