Initialize the display earlier
to have it ready to display errors during (temperature)-setup.
This commit is contained in:
		@@ -641,6 +641,9 @@ void setup() {
 | 
				
			|||||||
  // loads data from EEPROM if available else uses defaults (and resets step acceleration rate)
 | 
					  // loads data from EEPROM if available else uses defaults (and resets step acceleration rate)
 | 
				
			||||||
  Config_RetrieveSettings();
 | 
					  Config_RetrieveSettings();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  lcd_init();
 | 
				
			||||||
 | 
					  _delay_ms(1000);  // wait 1sec to display the splash screen
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  tp_init();    // Initialize temperature loop
 | 
					  tp_init();    // Initialize temperature loop
 | 
				
			||||||
  plan_init();  // Initialize planner;
 | 
					  plan_init();  // Initialize planner;
 | 
				
			||||||
  watchdog_init();
 | 
					  watchdog_init();
 | 
				
			||||||
@@ -648,9 +651,6 @@ void setup() {
 | 
				
			|||||||
  setup_photpin();
 | 
					  setup_photpin();
 | 
				
			||||||
  servo_init();
 | 
					  servo_init();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  lcd_init();
 | 
					 | 
				
			||||||
  _delay_ms(1000);  // wait 1sec to display the splash screen
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  #if HAS_CONTROLLERFAN
 | 
					  #if HAS_CONTROLLERFAN
 | 
				
			||||||
    SET_OUTPUT(CONTROLLERFAN_PIN); //Set pin used for driver cooling fan
 | 
					    SET_OUTPUT(CONTROLLERFAN_PIN); //Set pin used for driver cooling fan
 | 
				
			||||||
  #endif
 | 
					  #endif
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user