Skip to content

Commit

Permalink
fixup! feat(split): Add full-duplex wired split support
Browse files Browse the repository at this point in the history
  • Loading branch information
petejohanson committed Mar 5, 2025
1 parent b71a1a3 commit 8636724
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/src/split/wired/central.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ static struct zmk_split_wired_async_state async_state = {
#if HAS_DIR_GPIO
.dir_gpio = &dir_gpio,
#endif
;
};

#endif

Expand Down
5 changes: 1 addition & 4 deletions app/src/split/wired/wired.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,16 +193,13 @@ static void async_uart_cb(const struct device *dev, struct uart_event *ev, void
break;
}

LOG_DBG("RX %d and now buffer is %d", received, ring_buf_size_get(state->rx_buf));
// LOG_DBG("RX %d and now buffer is %d", received, ring_buf_size_get(state->rx_buf));
if (state->process_tx_callback) {
state->process_tx_callback();
} else if (state->process_tx_work) {
k_work_submit(state->process_tx_work);
}

// if (ring_buf_size_get(state->rx_buf) >= state->rx_size_process_trigger) {
// LOG_DBG("RX %d and now buffer is %d", received, ring_buf_size_get(state->rx_buf));
// }
break;
}
case UART_RX_BUF_RELEASED:
Expand Down

0 comments on commit 8636724

Please sign in to comment.