switch fertilizer to extra 1
This commit is contained in:
@@ -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])
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user