Adapt time comment

This commit is contained in:
Ollo 2020-10-31 12:44:49 +01:00
parent 979baf5ff9
commit 5b420ab904

View File

@ -453,8 +453,8 @@ void systemInit(){
// Set default values // Set default values
//in seconds //in seconds
deepSleepTime.setDefaultValue(10); deepSleepTime.setDefaultValue(60);
deepSleepNightTime.setDefaultValue(30); deepSleepNightTime.setDefaultValue(600);
wateringDeepSleep.setDefaultValue(5); wateringDeepSleep.setDefaultValue(5);
/* waterLevelMax 1000 */ /* 100cm in mm */ /* waterLevelMax 1000 */ /* 100cm in mm */
@ -504,12 +504,9 @@ void systemInit(){
bool mode1(){ bool mode1(){
Serial.println("m1"); Serial.println("==== Mode 1 ====");
Serial << getCurrentTime() << " curtime" << endl; Serial << getCurrentTime() << " curtime" << endl;
/* Disable all sleeping stuff before reading sensors */
gpio_deep_sleep_hold_dis();
readSensors(); readSensors();
//queue sensor values for //queue sensor values for
@ -571,7 +568,7 @@ bool mode1(){
} }
void mode2(){ void mode2(){
Serial.println("m2"); Serial.println("==== Mode 2 ====");
systemInit(); systemInit();
/* Jump into Mode 3, if not configured */ /* Jump into Mode 3, if not configured */