reduce amount of warnings
This commit is contained in:
@@ -238,7 +238,7 @@ impl PlantState {
|
||||
}
|
||||
PlantWateringMode::MinMoisture => {
|
||||
let (moisture_percent, _) = self.plant_moisture();
|
||||
if let Some(moisture_percent) = moisture_percent {
|
||||
if let Some(_moisture_percent) = moisture_percent {
|
||||
if self.pump_in_timeout(plant_conf, current_time) {
|
||||
false
|
||||
} else if !in_time_range(
|
||||
@@ -247,10 +247,10 @@ impl PlantState {
|
||||
plant_conf.pump_hour_end,
|
||||
) {
|
||||
false
|
||||
} else if (true) {
|
||||
} else if true {
|
||||
//if not cooldown min and below max
|
||||
true
|
||||
} else if (true) {
|
||||
} else if true {
|
||||
//if below min disable cooldown min
|
||||
true
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user