allow to selectivly enable redundant sensors

This commit is contained in:
2024-02-17 17:25:50 +01:00
parent 680d1c3aaf
commit 9d1a807805
5 changed files with 260 additions and 101 deletions

View File

@@ -59,6 +59,8 @@ pub struct Plant {
pub pump_cooldown_min: u16,
pub pump_hour_start: u8,
pub pump_hour_end: u8,
pub sensor_b: bool,
pub sensor_p: bool
}
impl Default for Plant {
fn default() -> Self {
@@ -69,6 +71,8 @@ impl Default for Plant {
pump_hour_start: 8,
pump_hour_end: 20,
mode: Mode::OFF,
sensor_b : false,
sensor_p : false
}
}
}