mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-25 21:24:16 +08:00
Write Immediate Alert after discovering handle
Write the Immediate Alert level characteristic if there is a pending alert value to be written after discovering the characteristic handle.
This commit is contained in:
parent
3aa6ac9726
commit
b5a72304ac
@ -273,6 +273,9 @@ static void immediate_handle_cb(GSList *characteristics, guint8 status,
|
||||
monitor->immediatehandle = chr->value_handle;
|
||||
|
||||
DBG("Immediate Alert handle: 0x%04x", monitor->immediatehandle);
|
||||
|
||||
if (monitor->fallbacklevel)
|
||||
write_immediate_alert(monitor);
|
||||
}
|
||||
|
||||
static void discover_immediate_handle(struct monitor *monitor)
|
||||
|
Loading…
Reference in New Issue
Block a user