Fixes the broken UART by intializing it after the sidebuttons.

This commit is contained in:
Travis Goodspeed 2018-09-23 13:03:39 -04:00
parent cca039f365
commit 01c38cdc8c

View File

@ -99,9 +99,6 @@ int main(void) {
tone(NOTE_C8, 500);
*/
lcd_zero();
lcd_string("UARTINIT");
uart_init();
lcd_zero();
printf("cp ");
@ -132,8 +129,11 @@ int main(void) {
//Unused IO pins must be outputs.
PJDIR |= 0xF;
PJOUT &= ~0xF;
//UART must come after the sidebuttons.
lcd_zero();
lcd_string("UARTINIT");
uart_init();
// Setup and enable WDT 250ms, ACLK, interval timer
WDTCTL = WDT_ADLY_250;