Skip to content

Commit 92cf560

Browse files
committed
blue_uart_echo_test from Bluefruit app is working
1 parent 74034d6 commit 92cf560

File tree

1 file changed

+2
-2
lines changed
  • devices/ble_hci/common-hal/_bleio

1 file changed

+2
-2
lines changed

devices/ble_hci/common-hal/_bleio/att.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ int att_read_group_req(uint16_t conn_handle, uint16_t start_handle, uint16_t end
10321032
struct bt_att_hdr h;
10331033
struct bt_att_read_group_req r;
10341034
} req = { {
1035-
.code = BT_ATT_OP_ERROR_RSP,
1035+
.code = BT_ATT_OP_READ_GROUP_REQ,
10361036
}, {
10371037
.start_handle = start_handle,
10381038
.end_handle = end_handle,
@@ -1410,7 +1410,7 @@ STATIC void process_write_req_or_cmd(uint16_t conn_handle, uint16_t mtu, uint8_t
14101410
if (with_response) {
14111411
// There's no data in the response. We just indicate the write happened.
14121412
struct bt_att_hdr rsp = {
1413-
.code = BT_ATT_OP_READ_REQ,
1413+
.code = BT_ATT_OP_WRITE_RSP,
14141414
};
14151415

14161416
hci_send_acl_pkt(conn_handle, BT_L2CAP_CID_ATT, sizeof(rsp), (uint8_t *) &rsp);

0 commit comments

Comments
 (0)