Avoid bad relay trigger on startup
This commit is contained in:
parent
4d07d83904
commit
b4220a3254
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user