From 67d1aa55de32e6293e6ac07e0282338fa17f5087 Mon Sep 17 00:00:00 2001 From: c3ma Date: Wed, 14 Oct 2020 20:19:27 +0200 Subject: [PATCH] all new inside comment and everything works --- esp32/src/PlantCtrl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/esp32/src/PlantCtrl.cpp b/esp32/src/PlantCtrl.cpp index fdba9cd..e06a9f1 100644 --- a/esp32/src/PlantCtrl.cpp +++ b/esp32/src/PlantCtrl.cpp @@ -18,9 +18,10 @@ Plant::Plant(int pinSensor, int pinPump,int plantId) { char plantIdChar = plantId+'0'; + /* { char* name = "moistZdry"; - name[6]= plantIdChar; + name[5]= plantIdChar; mSensorDry = new HomieSetting(name, "Moist sensor dry threshold"); mSensorDry->setDefaultValue(4095); mSensorDry->setValidator([] (long candidate) { @@ -69,6 +70,7 @@ Plant::Plant(int pinSensor, int pinPump,int plantId) { return ((candidate >= 0) && (candidate <= 1024) ); }); } +*/ } void Plant::addSenseValue(int analog) {