refactor(split): use LOG_HEXDUMP_DBG() to print position state data (#2854)

The previous code prints one line per byte, making debugging difficult.
This commit is contained in:
Xudong Zheng 2025-04-20 04:36:52 -04:00 committed by GitHub
parent 2a7ab8ed0a
commit c6738ce2e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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++) {