linux: up-device-supply: reset the values for battery charging threshold

Reset the value of the properties.

Signed-off-by: Kate Hsuan <hpa@redhat.com>
This commit is contained in:
Jelle van der Waa 2024-07-23 14:15:34 +08:00 committed by Kate Hsuan
parent a955bae8c4
commit f3a81a610f

View file

@ -107,6 +107,10 @@ up_device_supply_reset_values (UpDeviceSupply *supply)
"temperature", (gdouble) 0.0,
"technology", UP_DEVICE_TECHNOLOGY_UNKNOWN,
"charge-cycles", -1,
"charge-start-threshold", 0,
"charge-end-threshold", 100,
"charge-threshold-enabled", FALSE,
"charge-threshold-supported", FALSE,
NULL);
}