mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
bluetooth/native: Signal support for dock status in XAPL reply
The previous commit parses both battery level and dock status (if only for printing to logs). Make sure bit `2` is set in the `+XAPL=` reply to signify support for reading this, too. Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/482>
This commit is contained in:
parent
7a84a24652
commit
4cbac23894
1 changed files with 1 additions and 1 deletions
|
|
@ -739,7 +739,7 @@ static void rfcomm_io_callback(pa_mainloop_api *io, pa_io_event *e, int fd, pa_i
|
|||
} else if (sscanf(buf, "AT+XAPL=%04x-%04x-%04x,%d", &vendor, &product, &version, &features) == 4) {
|
||||
if (features & 0x2)
|
||||
/* claim, that we support battery status reports */
|
||||
rfcomm_write_response(fd, "+XAPL=iPhone,2");
|
||||
rfcomm_write_response(fd, "+XAPL=iPhone,6");
|
||||
do_reply = true;
|
||||
} else if (sscanf(buf, "AT+IPHONEACCEV=%d", &num) == 1) {
|
||||
char *substr = strchr(buf, ',');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue