clear averages for each run, ignore distances higher than tank depth

This commit is contained in:
Your Name
2021-07-01 20:39:51 +02:00
parent 11d29939f6
commit 7c9a0bf6f1
3 changed files with 28 additions and 3 deletions

View File

@@ -55,6 +55,10 @@ void Plant::init(void)
digitalWrite(this->mPinPump, LOW);
}
void Plant::clearMoisture(void){
this->moistureRaw.clear();
}
void Plant::addSenseValue(void)
{
int raw = analogRead(this->mPinSensor);