PATCH BlueZ

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From 1441941143dbc465bfde8953e55989c71515f8b0 Mon Sep 17 00:00:00 2001
From: caitao <caitao@xxxxxxxxxx>
Date: Mon, 13 Jan 2025 17:46:53 +0800
Subject: [PATCH BlueZ 0/1] *** SUBJECT HERE ***

*** BLURB HERE ***

caitao (1):
battery.c: The battery is not initialized, and initialize the battery

profiles/battery/battery.c | 2 ++
1 file changed, 2 insertions(+)

--
2.25.1

From 1441941143dbc465bfde8953e55989c71515f8b0 Mon Sep 17 00:00:00 2001
From: caitao <caitao@xxxxxxxxxx>
Date: Fri, 13 Dec 2024 17:49:30 +0800
Subject: [PATCH BlueZ 1/1] battery.c: The battery is not initialized, and
initialize the battery

fix: https://github.com/bluez/bluez/issues/1042

Signed-off-by: caitao <caitao@xxxxxxxxxx>
---
profiles/battery/battery.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/profiles/battery/battery.c b/profiles/battery/battery.c
index 5318d40d1..a314f3a44 100644
--- a/profiles/battery/battery.c
+++ b/profiles/battery/battery.c
@@ -139,6 +139,8 @@ static void batt_io_ccc_written_cb(uint16_t att_ecode, void *user_data)
g_free (batt->initial_value);
batt->initial_value = NULL;

+ btd_battery_update(batt->battery, batt->percentage);
+
DBG("Battery Level: notification enabled");
}

--
2.25.1







----

 

Attachment: 0000-cover-letter.patch
Description: Binary data

Attachment: 0001-battery.c-The-battery-is-not-initialized-and-initial.patch
Description: Binary data


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux