From f3a81a610fb21976d22cf8bd090e6ecc21004759 Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Tue, 23 Jul 2024 14:15:34 +0800 Subject: [PATCH] linux: up-device-supply: reset the values for battery charging threshold Reset the value of the properties. Signed-off-by: Kate Hsuan --- src/linux/up-device-supply.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/linux/up-device-supply.c b/src/linux/up-device-supply.c index 1669621..d6524db 100644 --- a/src/linux/up-device-supply.c +++ b/src/linux/up-device-supply.c @@ -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); }