add config field to enable moisture sensor a

This commit is contained in:
ju6ge 2025-03-27 21:48:42 +01:00
parent 4b1f2b9ca7
commit 76835b23b1
Signed by: judge
GPG Key ID: 6512C30DD8E017B5

View File

@ -89,6 +89,7 @@ pub struct PlantConfig {
pub pump_cooldown_min: u16,
pub pump_hour_start: u8,
pub pump_hour_end: u8,
pub sensor_a: bool,
pub sensor_b: bool,
pub max_consecutive_pump_count: u8,
}
@ -101,6 +102,7 @@ impl Default for PlantConfig {
pump_cooldown_min: 60,
pump_hour_start: 9,
pump_hour_end: 20,
sensor_a: true,
sensor_b: false,
max_consecutive_pump_count: 10,
}