aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32F0xx/serial_lld.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/platforms/STM32F0xx/serial_lld.c')
-rw-r--r--os/hal/platforms/STM32F0xx/serial_lld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/platforms/STM32F0xx/serial_lld.c b/os/hal/platforms/STM32F0xx/serial_lld.c
index abb15b84a..a611279a4 100644
--- a/os/hal/platforms/STM32F0xx/serial_lld.c
+++ b/os/hal/platforms/STM32F0xx/serial_lld.c
@@ -166,7 +166,7 @@ static void serve_interrupt(SerialDriver *sdp) {
u->CR1 = (cr1 & ~USART_CR1_TXEIE) | USART_CR1_TCIE;
}
else
- u->RDR = b;
+ u->TDR = b;
chSysUnlockFromIsr();
}
/* Physical transmission end.*/