Diff between 9f11632b1fca71af4ae7de58ea757a5bf7de20da and 09080c0022ba11ddf70b8b0c4f5119072017e04e

Changed Files

File Additions Deletions Status
profiles/battery/battery.c +1 -0 modified

Full Patch

diff --git a/profiles/battery/battery.c b/profiles/battery/battery.c
index 81f849d..176d127 100644
--- a/profiles/battery/battery.c
+++ b/profiles/battery/battery.c
@@ -75,6 +75,7 @@ static void batt_free(struct batt *batt)
 static void batt_reset(struct batt *batt)
 {
 	batt->attr = NULL;
+	batt->percentage = -1;
 	gatt_db_unref(batt->db);
 	batt->db = NULL;
 	bt_gatt_client_unref(batt->client);