Skip to content

Commit

Permalink
Added debug flag for debug related code
Browse files Browse the repository at this point in the history
  • Loading branch information
rahult-github committed Mar 15, 2023
1 parent 99a79e4 commit 4ed9533
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nimble/host/src/ble_att_clt.c
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,8 @@ ble_att_clt_tx_write_cmd(uint16_t conn_handle, uint16_t handle,

struct ble_att_write_cmd *cmd;
struct os_mbuf *txom2;

#if MYNEWT_VAL(BLE_HS_DEBUG)
uint8_t b;
int rc;
int i;
Expand All @@ -719,7 +721,7 @@ ble_att_clt_tx_write_cmd(uint16_t conn_handle, uint16_t handle,
assert(rc == 0);
BLE_HS_LOG(DEBUG, "0x%02x", b);
}

#endif

cmd = ble_att_cmd_get(BLE_ATT_OP_WRITE_CMD, sizeof(*cmd), &txom2);
if (cmd == NULL) {
Expand Down

0 comments on commit 4ed9533

Please sign in to comment.