cleanup main and network state handling
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
use crate::{
|
||||
determine_tank_state, get_version, log::LogMessage, plant_hal::PLANT_COUNT,
|
||||
plant_state::PlantState, util::LimitPrecision, BOARD_ACCESS,
|
||||
plant_state::PlantState, BOARD_ACCESS,
|
||||
};
|
||||
use anyhow::bail;
|
||||
use chrono::DateTime;
|
||||
@@ -273,7 +273,7 @@ fn tank_info(
|
||||
//should be multsampled
|
||||
let water_temp = board.water_temperature_c();
|
||||
Ok(Some(serde_json::to_string(
|
||||
&tank_info.as_mqtt_info(&config.tank, water_temp),
|
||||
&tank_info.as_mqtt_info(&config.tank, &water_temp),
|
||||
)?))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user