From c6738ce2e531db2d003b7c2047cc5d61980e782a Mon Sep 17 00:00:00 2001 From: Xudong Zheng <7pkvm5aw@slicealias.com> Date: Sun, 20 Apr 2025 04:36:52 -0400 Subject: [PATCH] refactor(split): use LOG_HEXDUMP_DBG() to print position state data (#2854) The previous code prints one line per byte, making debugging difficult. --- app/src/split/bluetooth/central.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/split/bluetooth/central.c b/app/src/split/bluetooth/central.c index 9b0e38b59..8f8e76d99 100644 --- a/app/src/split/bluetooth/central.c +++ b/app/src/split/bluetooth/central.c @@ -358,8 +358,8 @@ static uint8_t split_central_notify_func(struct bt_conn *conn, for (int i = 0; i < POSITION_STATE_DATA_LEN; i++) { slot->changed_positions[i] = ((uint8_t *)data)[i] ^ slot->position_state[i]; slot->position_state[i] = ((uint8_t *)data)[i]; - LOG_DBG("data: %d", slot->position_state[i]); } + LOG_HEXDUMP_DBG(slot->position_state, POSITION_STATE_DATA_LEN, "data"); for (int i = 0; i < POSITION_STATE_DATA_LEN; i++) { for (int j = 0; j < 8; j++) {