mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-09 03:27:57 +00:00
This will help not execute extra code when DEBUG level is not set.
This commit is contained in:
committed by
Andrzej Kaczmarek
parent
88758a8107
commit
64758379a6
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user