Merge branch 'master' of github.com:0110/PlantCtrl

This commit is contained in:
Empire
2023-02-10 22:12:57 +01:00
6 changed files with 89 additions and 65 deletions
+7 -1
View File
@@ -73,6 +73,12 @@ public:
return SENSOR_STRING[mode];
}
bool isTimerOnly()
{
long current = this->mSetting->pSensorDry->get();
return equalish(current, TIMER_ONLY);
}
bool isHydroponic()
{
long current = this->mSetting->pSensorDry->get();
@@ -92,7 +98,7 @@ public:
*/
bool isPumpRequired()
{
if (isHydroponic())
if (isHydroponic() || isTimerOnly())
{
// hydroponic only uses timer based controll
return true;