reduced settings
This commit is contained in:
@@ -24,10 +24,6 @@ void Plant::init(void) {
|
||||
this->mSetting->pSensorDry->setValidator([] (long candidate) {
|
||||
return (((candidate >= 0) && (candidate <= 4095) ) || candidate == DEACTIVATED_PLANT);
|
||||
});
|
||||
this->mSetting->pSensorWet->setDefaultValue(0);
|
||||
this->mSetting->pSensorWet->setValidator([] (long candidate) {
|
||||
return ((candidate >= 0) && (candidate <= 4095) );
|
||||
});
|
||||
this->mSetting->pPumpAllowedHourRangeStart->setDefaultValue(8); // start at 8:00
|
||||
this->mSetting->pPumpAllowedHourRangeStart->setValidator([] (long candidate) {
|
||||
return ((candidate >= 0) && (candidate <= 23) );
|
||||
|
||||
@@ -415,7 +415,6 @@ bool switchGeneralPumpHandler(const int pump, const HomieRange& range, const Str
|
||||
*/
|
||||
bool aliveHandler(const HomieRange& range, const String& value) {
|
||||
if (range.isRange) return false; // only one controller is present
|
||||
|
||||
if (value.equals("ON") || value.equals("On") || value.equals("1")) {
|
||||
mode3Active=true;
|
||||
} else {
|
||||
@@ -605,7 +604,6 @@ bool mode1(){
|
||||
|
||||
void mode2(){
|
||||
Serial.println("m2");
|
||||
|
||||
systemInit();
|
||||
|
||||
/* Jump into Mode 3, if not configured */
|
||||
|
||||
Reference in New Issue
Block a user