switch fertilizer to extra 1

This commit is contained in:
2026-05-01 10:45:54 +02:00
parent db0f7daa4c
commit 2ee3615dcd
4 changed files with 24 additions and 22 deletions

View File

@@ -164,7 +164,7 @@ pub trait BoardInteraction<'a> {
async fn get_mptt_voltage(&mut self) -> FatResult<Voltage>;
async fn get_mptt_current(&mut self) -> FatResult<Current>;
async fn can_power(&mut self, state: bool) -> FatResult<()>;
async fn extra2(&mut self, enable: bool) -> FatResult<()>;
async fn extra1(&mut self, enable: bool) -> FatResult<()>;
async fn backup_config(&mut self, config: &PlantControllerConfig) -> FatResult<()>;
async fn read_backup(&mut self) -> FatResult<PlantControllerConfig>;
@@ -176,12 +176,7 @@ pub trait BoardInteraction<'a> {
}
/// Return the last known firmware build timestamps per sensor, set during detect_sensors.
fn get_sensor_build_minutes(
&self,
) -> (
[Option<u32>; PLANT_COUNT],
[Option<u32>; PLANT_COUNT],
) {
fn get_sensor_build_minutes(&self) -> ([Option<u32>; PLANT_COUNT], [Option<u32>; PLANT_COUNT]) {
([None; PLANT_COUNT], [None; PLANT_COUNT])
}

View File

@@ -484,11 +484,11 @@ impl<'a> BoardInteraction<'a> for V4<'a> {
Ok(())
}
async fn extra2(&mut self, enable: bool) -> FatResult<()> {
async fn extra1(&mut self, enable: bool) -> FatResult<()> {
if enable {
self.extra2.set_high();
self.extra1.set_high();
} else {
self.extra2.set_low();
self.extra1.set_low();
}
Ok(())
}
@@ -652,9 +652,7 @@ impl<'a> BoardInteraction<'a> for V4<'a> {
}
}
fn get_sensor_build_minutes(
&self,
) -> ([Option<u32>; PLANT_COUNT], [Option<u32>; PLANT_COUNT]) {
fn get_sensor_build_minutes(&self) -> ([Option<u32>; PLANT_COUNT], [Option<u32>; PLANT_COUNT]) {
(self.sensor_a_build_minutes, self.sensor_b_build_minutes)
}
}