summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2022-02-13 20:44:44 +0000
committerGitHub <noreply@github.com>2022-02-13 20:44:44 +0000
commit4fd04b23714ebfaa9aae75f8ebc4c33b90941aba (patch)
treee2295c5115c3ef5a19d2049765994fb2304a1621
parent63646e8906e062d1c1de3925cba70c4e3426a855 (diff)
Fix compilation of ChibiOS UART driver (#16348)
Cherry picked fix from 15724
-rw-r--r--platforms/chibios/drivers/uart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/platforms/chibios/drivers/uart.c b/platforms/chibios/drivers/uart.c
index dbe991efa3..4884d7024f 100644
--- a/platforms/chibios/drivers/uart.c
+++ b/platforms/chibios/drivers/uart.c
@@ -44,7 +44,7 @@ void uart_init(uint32_t baud) {
}
void uart_write(uint8_t data) {
- sdPut(&SERIAL_DRIVER, c);
+ sdPut(&SERIAL_DRIVER, data);
}
uint8_t uart_read(void) {