summaryrefslogtreecommitdiff
path: root/platforms/avr/drivers/uart.c
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2022-02-12 10:29:31 -0800
committerGitHub <noreply@github.com>2022-02-12 18:29:31 +0000
commit63646e8906e062d1c1de3925cba70c4e3426a855 (patch)
tree4e91648b77b838e1125cf86331d7e84bde6d07a9 /platforms/avr/drivers/uart.c
parentafcdd7079c774dec2aa4b7f2d08adf8b7310919b (diff)
downloadqmk_firmware-63646e8906e062d1c1de3925cba70c4e3426a855.tar.gz
qmk_firmware-63646e8906e062d1c1de3925cba70c4e3426a855.zip
Format code according to conventions (#16322)
Diffstat (limited to 'platforms/avr/drivers/uart.c')
-rw-r--r--platforms/avr/drivers/uart.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/platforms/avr/drivers/uart.c b/platforms/avr/drivers/uart.c
index 01cf6b1fb8..fd5caf9a78 100644
--- a/platforms/avr/drivers/uart.c
+++ b/platforms/avr/drivers/uart.c
@@ -108,7 +108,7 @@ void uart_write(uint8_t data) {
// return immediately to avoid deadlock when interrupt is disabled(called from ISR)
if (tx_buffer_tail == i && (SREG & (1 << SREG_I)) == 0) return;
while (tx_buffer_tail == i)
- ; // wait until space in buffer
+ ; // wait until space in buffer
// cli();
tx_buffer[i] = data;
tx_buffer_head = i;
@@ -121,7 +121,7 @@ uint8_t uart_read(void) {
uint8_t data, i;
while (rx_buffer_head == rx_buffer_tail)
- ; // wait for character
+ ; // wait for character
i = rx_buffer_tail + 1;
if (i >= RX_BUFFER_SIZE) i = 0;
data = rx_buffer[i];