Skip to content

Commit

Permalink
refactor(split): use LOG_HEXDUMP_DBG() to print position state data
Browse files Browse the repository at this point in the history
The previous code prints one line per byte, making debugging difficult.
  • Loading branch information
xudongzheng committed Mar 4, 2025
1 parent 40e9e5c commit 2ff88e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/split/bluetooth/central.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit 2ff88e5

Please sign in to comment.