mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-08 10:08:08 +02:00
fix recognition of lithium iron phosphate (LiFePO4) batteries
The linux kernel returns "LiFe" for lithium iron phosphate batteries, not LiFo.
This commit is contained in:
parent
67202b5eae
commit
4baf27ae15
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue