aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libmaple/usart.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/libmaple/usart.h b/libmaple/usart.h
index 1cfba96..0ad1405 100644
--- a/libmaple/usart.h
+++ b/libmaple/usart.h
@@ -275,8 +275,7 @@ static inline void usart_disable_all(void) {
* @param byte Byte to transmit.
*/
static inline void usart_putc(usart_dev* dev, uint8 byte) {
- uint8 buf[] = {byte};
- while (!usart_tx(dev, buf, 1))
+ while (!usart_tx(dev, &byte, 1))
;
}