Avoid bad relay trigger on startup
This commit is contained in:
		@@ -23,8 +23,8 @@ void app_main(void)
 | 
			
		||||
    ESP_LOGI(TAG, "SolarEnergy WT32-ETH01 device");
 | 
			
		||||
 | 
			
		||||
    // Turn off all relays
 | 
			
		||||
    relays_setup();
 | 
			
		||||
    relays_turn_off_all();
 | 
			
		||||
    relays_setup();
 | 
			
		||||
 | 
			
		||||
    // Initialize storage
 | 
			
		||||
    if (storage_init() == false)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user