From: Dan White Date: Tue, 21 May 2013 20:24:12 +0000 (-0500) Subject: msp4th.c: bugfix uart_puts() X-Git-Tag: cheetah~58 X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=ed92b9720d20c16fce3b103424e87794eab280ff;p=430.git msp4th.c: bugfix uart_puts() --- diff --git a/msp4th/bootrom.rcf b/msp4th/bootrom.rcf index d9d0362..f441d53 100644 --- a/msp4th/bootrom.rcf +++ b/msp4th/bootrom.rcf @@ -182,14 +182,15 @@ 0010001000000110 0100000100110000 0001001000001011 -0001001000001010 +0100111101101110 0100111100001011 -0100101101101010 -0100101001001111 +0011110000000100 +0100111001001111 0001001010110000 0011000101010010 +0100101101101110 0101001100011011 -1001001101001010 +1001001101001110 0010001111111001 0100000001111111 0000000000001101 @@ -199,7 +200,6 @@ 0000000000001010 0001001010110000 0011000101010010 -0100000100111010 0100000100111011 0100000100110000 1000001100100110 diff --git a/msp4th/ns430-uart.c b/msp4th/ns430-uart.c index c6649cb..a3f29d2 100644 --- a/msp4th/ns430-uart.c +++ b/msp4th/ns430-uart.c @@ -29,9 +29,10 @@ void uart_puts(uint8_t *s) uint16_t i = 0; uint8_t c = 1; + c = s[i++]; while (c != 0) { - c = s[i++]; uart_putchar(c); + c = s[i++]; } uart_putchar('\r'); uart_putchar('\n');