浏览代码

Fix compilation of ChibiOS UART driver (#16348)

Cherry picked fix from 15724
Joel Challis 3 年之前
父节点
当前提交
4fd04b2371
共有 1 个文件被更改,包括 1 次插入1 次删除
  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) {