From 2ff88e5731ed30837e790c815c3a35ded1f01ca3 Mon Sep 17 00:00:00 2001 From: Xudong Zheng <7pkvm5aw@slicealias.com> Date: Tue, 4 Mar 2025 17:31:14 -0500 Subject: [PATCH] refactor(split): use LOG_HEXDUMP_DBG() to print position state data 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 dcebfb0cc5c..14812eee1cc 100644 --- a/app/src/split/bluetooth/central.c +++ b/app/src/split/bluetooth/central.c @@ -376,8 +376,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++) {