summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Silbe <sascha-pgp@silbe.org>2010-05-01 18:44:38 +0200
committerRichard Hughes <richard@hughsie.com>2010-05-03 15:18:44 +0100
commit4baf27ae153899048118e230a1a909e6ee35edb5 (patch)
treeae68e8789b9f1cc48b3c635a5b2a0727e21bf65f
parent67202b5eae4097b04b46316fd35f869a71b3f8c5 (diff)
fix recognition of lithium iron phosphate (LiFePO4) batteries
The linux kernel returns "LiFe" for lithium iron phosphate batteries, not LiFo.
-rw-r--r--src/linux/up-device-supply.c2
1 files changed, 1 insertions, 1 deletions
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;
}