Fix trying to use serial before it's intiialized
This commit is contained in:
parent
ace5130d9f
commit
8eb054e789
|
|
@ -1044,10 +1044,6 @@ void setup()
|
||||||
{
|
{
|
||||||
timer2_init(); // enables functional millis
|
timer2_init(); // enables functional millis
|
||||||
|
|
||||||
if (eeprom_read_byte((uint8_t *)EEPROM_MMU_ENABLED))
|
|
||||||
{
|
|
||||||
MMU2::mmu2.Start();
|
|
||||||
}
|
|
||||||
|
|
||||||
ultralcd_init();
|
ultralcd_init();
|
||||||
|
|
||||||
|
|
@ -1063,6 +1059,12 @@ void setup()
|
||||||
fdev_setup_stream(uartout, uart_putchar, NULL, _FDEV_SETUP_WRITE); //setup uart out stream
|
fdev_setup_stream(uartout, uart_putchar, NULL, _FDEV_SETUP_WRITE); //setup uart out stream
|
||||||
stdout = uartout;
|
stdout = uartout;
|
||||||
|
|
||||||
|
if (eeprom_read_byte((uint8_t *)EEPROM_MMU_ENABLED))
|
||||||
|
{
|
||||||
|
MMU2::mmu2.Start();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifdef XFLASH
|
#ifdef XFLASH
|
||||||
bool xflash_success = xflash_init();
|
bool xflash_success = xflash_init();
|
||||||
uint8_t optiboot_status = 1;
|
uint8_t optiboot_status = 1;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue