aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-08-30 18:21:38 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2011-08-30 18:21:38 -0400
commit776b78ffa8463c6dbe5e703521040106fadbafe9 (patch)
treeabf16c5e7528e2c8e86fe8a6b2062cdf88b669ea
parent0bba7af4397ce505184e9ac4fd0bfc759346f753 (diff)
downloadlibrambutan-776b78ffa8463c6dbe5e703521040106fadbafe9.tar.gz
librambutan-776b78ffa8463c6dbe5e703521040106fadbafe9.zip
usart.h: Remove unnecessary local in usart_putc().
-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))
;
}