Explorar el Código

Initialize the display earlier

to have it ready to display errors during (temperature)-setup.
AnHardt hace 10 años
padre
commit
f0523b5816
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3
    3
      Marlin/Marlin_main.cpp

+ 3
- 3
Marlin/Marlin_main.cpp Ver fichero

641
   // loads data from EEPROM if available else uses defaults (and resets step acceleration rate)
641
   // loads data from EEPROM if available else uses defaults (and resets step acceleration rate)
642
   Config_RetrieveSettings();
642
   Config_RetrieveSettings();
643
 
643
 
644
+  lcd_init();
645
+  _delay_ms(1000);  // wait 1sec to display the splash screen
646
+
644
   tp_init();    // Initialize temperature loop
647
   tp_init();    // Initialize temperature loop
645
   plan_init();  // Initialize planner;
648
   plan_init();  // Initialize planner;
646
   watchdog_init();
649
   watchdog_init();
648
   setup_photpin();
651
   setup_photpin();
649
   servo_init();
652
   servo_init();
650
 
653
 
651
-  lcd_init();
652
-  _delay_ms(1000);  // wait 1sec to display the splash screen
653
-
654
   #if HAS_CONTROLLERFAN
654
   #if HAS_CONTROLLERFAN
655
     SET_OUTPUT(CONTROLLERFAN_PIN); //Set pin used for driver cooling fan
655
     SET_OUTPUT(CONTROLLERFAN_PIN); //Set pin used for driver cooling fan
656
   #endif
656
   #endif

Loading…
Cancelar
Guardar