splitting wip

This commit is contained in:
2025-06-19 16:56:33 +02:00
parent c429c829b4
commit fc1991523a
9 changed files with 1553 additions and 1675 deletions

View File

@@ -158,8 +158,8 @@ impl TankState {
pub fn determine_tank_state(
board: &mut std::sync::MutexGuard<'_, HAL<'_>>
) -> TankState {
if board.config.tank.tank_sensor_enabled {
match board.tank_sensor_voltage() {
if board.board_hal.get_config().tank.tank_sensor_enabled {
match board.board_hal.tank_sensor_voltage() {
Ok(raw_sensor_value_mv) => TankState::Present(raw_sensor_value_mv),
Err(err) => TankState::Error(TankError::BoardError(err.to_string())),
}