Explorar o código

Fix compilation of ChibiOS UART driver (#16348)

Cherry picked fix from 15724
Joel Challis %!s(int64=3) %!d(string=hai) anos
pai
achega
4fd04b2371
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      platforms/chibios/drivers/uart.c

+ 1 - 1
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) {