Skip to content

Commit

Permalink
Minor logging fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rojer committed Nov 30, 2021
1 parent 51a00bc commit b79b151
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/esp32/esp32_bt_gatts.c
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ static int esp32_gatts_attr_access_cb(uint16_t ch, uint16_t ah,
}
enum mgos_bt_gatt_status st =
esp32_bt_gatts_call_handler(sse, ai, MGOS_BT_GATTS_EV_WRITE, &warg);
if (ctxt->op == BLE_GATT_ACCESS_OP_READ_CHR) {
if (ctxt->op == BLE_GATT_ACCESS_OP_WRITE_CHR) {
LOG(LL_DEBUG, ("WRITE_CHR %s ch %d ah %u (%s) len %d -> %d",
mgos_bt_addr_to_str(&sse->gsc.gc.addr, 0, buf1),
sse->gsc.gc.conn_id, warg.handle,
Expand All @@ -677,7 +677,7 @@ static int esp32_gatts_attr_access_cb(uint16_t ch, uint16_t ah,
mgos_bt_addr_to_str(&sse->gsc.gc.addr, 0, buf1),
sse->gsc.gc.conn_id, cai->handle, warg.handle,
mgos_bt_uuid_to_str(&warg.char_uuid, buf2),
mgos_bt_uuid_to_str(&warg.desc_uuid, buf2),
mgos_bt_uuid_to_str(&warg.desc_uuid, buf3),
(int) warg.data.len, st));
}
res = esp32_gatts_get_att_err(st);
Expand Down

0 comments on commit b79b151

Please sign in to comment.