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");
 | 
					    ESP_LOGI(TAG, "SolarEnergy WT32-ETH01 device");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Turn off all relays
 | 
					    // Turn off all relays
 | 
				
			||||||
    relays_setup();
 | 
					 | 
				
			||||||
    relays_turn_off_all();
 | 
					    relays_turn_off_all();
 | 
				
			||||||
 | 
					    relays_setup();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Initialize storage
 | 
					    // Initialize storage
 | 
				
			||||||
    if (storage_init() == false)
 | 
					    if (storage_init() == false)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user