Skip to content

Commit

Permalink
Simplify a uart_write() loop
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark committed Oct 28, 2021
1 parent 739986a commit a2e2310
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions keyboards/nullbitsco/common/remote_kb.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ static void send_msg(uint16_t keycode, bool pressed) {
msg[IDX_PRESSED] = pressed;
msg[IDX_CHECKSUM] = chksum8(msg, UART_MSG_LEN-1);

for (int i=0; i<UART_MSG_LEN; i++) {
uart_write(msg[i]);
}
uart_transmit(msg, UART_MSG_LEN);
}

static void print_message_buffer(void) {
Expand Down

0 comments on commit a2e2310

Please sign in to comment.