all new inside comment and everything works
This commit is contained in:
		| @@ -18,9 +18,10 @@ Plant::Plant(int pinSensor, int pinPump,int plantId) { | |||||||
|  |  | ||||||
|     char plantIdChar = plantId+'0'; |     char plantIdChar = plantId+'0'; | ||||||
|  |  | ||||||
|  |     /* | ||||||
|     { |     { | ||||||
|         char* name = "moistZdry"; |         char* name = "moistZdry"; | ||||||
|         name[6]= plantIdChar; |         name[5]= plantIdChar; | ||||||
|         mSensorDry = new HomieSetting<long>(name, "Moist sensor dry threshold"); |         mSensorDry = new HomieSetting<long>(name, "Moist sensor dry threshold"); | ||||||
|         mSensorDry->setDefaultValue(4095); |         mSensorDry->setDefaultValue(4095); | ||||||
|         mSensorDry->setValidator([] (long candidate) { |         mSensorDry->setValidator([] (long candidate) { | ||||||
| @@ -69,6 +70,7 @@ Plant::Plant(int pinSensor, int pinPump,int plantId) { | |||||||
|             return ((candidate >= 0) && (candidate <= 1024) ); |             return ((candidate >= 0) && (candidate <= 1024) ); | ||||||
|         }); |         }); | ||||||
|     } |     } | ||||||
|  | */ | ||||||
| } | } | ||||||
|  |  | ||||||
| void Plant::addSenseValue(int analog) { | void Plant::addSenseValue(int analog) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user