This will help not execute extra code when DEBUG level is not set.

This commit is contained in:
Rahul Tank
2023-03-16 00:22:34 +01:00
committed by Andrzej Kaczmarek
parent 88758a8107
commit 64758379a6
+3 -1
View File
@@ -707,6 +707,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;
@@ -720,7 +722,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) {