Skip to content
This repository was archived by the owner on Dec 14, 2025. It is now read-only.

Commit b00bd1e

Browse files
committed
[BT] Add Player LED support for SW2
1 parent 9021b75 commit b00bd1e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

main/bluetooth/att_hid.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,12 @@ void bt_att_hid_hdlr(struct bt_dev *device, struct bt_hci_pkt *bt_hci_acl_pkt, u
532532

533533
if (device->ids.type == BT_SW2) {
534534
uint16_t data = BT_GATT_CCC_NOTIFY;
535+
uint8_t led[16] = {
536+
0x09, 0x91, 0x00, 0x07, 0x00, 0x08, 0x00, 0x00,
537+
bt_hid_led_dev_id_map[device->ids.out_idx],
538+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
539+
bt_att_cmd_write_req(device->acl_handle, 0x001b, (uint8_t *)&data, sizeof(data));
540+
bt_att_cmd_write_cmd(device->acl_handle, 0x0014, (uint8_t *)&led, sizeof(led));
535541
bt_att_cmd_write_req(device->acl_handle, 0x000b, (uint8_t *)&data, sizeof(data));
536542
}
537543
else {

0 commit comments

Comments
 (0)