Pump5 pin corrected

This commit is contained in:
c3ma
2020-10-28 20:14:52 +01:00
parent 48474cdba6
commit 58e3e3c652
2 changed files with 6 additions and 2 deletions

View File

@@ -133,6 +133,7 @@ void espDeepSleepFor(long seconds, bool activatePump = false){
} else {
esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_SLOW_MEM, ESP_PD_OPTION_OFF);
gpio_hold_dis(GPIO_NUM_13); //pump pwr
gpio_deep_sleep_hold_dis();
digitalWrite(OUTPUT_PUMP, LOW);
for (int i=0; i < MAX_PLANTS; i++) {
mPlants[i].deactivatePump();
@@ -516,6 +517,9 @@ bool mode1(){
Serial.println("m1");
Serial << getCurrentTime() << " curtime" << endl;
/* Disable all sleeping stuff before reading sensors */
gpio_deep_sleep_hold_dis();
readSensors();
//queue sensor values for