more async migration
This commit is contained in:
@@ -116,7 +116,7 @@ fn map_range_moisture(
|
||||
}
|
||||
|
||||
impl PlantState {
|
||||
pub fn read_hardware_state(plant_id: usize, board: &mut HAL) -> Self {
|
||||
pub async fn read_hardware_state(plant_id: usize, board: &mut HAL<'_>) -> Self {
|
||||
let sensor_a = if board.board_hal.get_config().plants[plant_id].sensor_a {
|
||||
match board.board_hal.measure_moisture_hz(plant_id, Sensor::A) {
|
||||
Ok(raw) => match map_range_moisture(
|
||||
|
||||
Reference in New Issue
Block a user