aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-04-25 22:29:48 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2011-04-25 22:29:48 -0400
commit621706150fc55b8266229131cc7fb6db6b2f7cd9 (patch)
tree8e2b24332d47cea2888130fbecc6029f903a760f
parentd5ee5fef3e33c7fe634a0b416394be9a5aacaf60 (diff)
downloadlibrambutan-621706150fc55b8266229131cc7fb6db6b2f7cd9.tar.gz
librambutan-621706150fc55b8266229131cc7fb6db6b2f7cd9.zip
Fixing usart_putstr() atrocity.
-rw-r--r--libmaple/usart.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmaple/usart.h b/libmaple/usart.h
index b2bb034..0743c53 100644
--- a/libmaple/usart.h
+++ b/libmaple/usart.h
@@ -294,7 +294,7 @@ static inline void usart_putc(usart_dev* dev, uint8 byte) {
static inline void usart_putstr(usart_dev *dev, const char* str) {
uint32 i = 0;
while (str[i] != '\0') {
- usart_putc(dev, str[i]);
+ usart_putc(dev, str[i++]);
}
}