Refactor flow meter handling: switch get_flow_meter_value to get_full_flow_count, update related structs and logic to use u32 for flow values.

This commit is contained in:
2026-05-05 01:14:54 +02:00
parent 3cc5a0d2bd
commit f8f76674ce
2 changed files with 17 additions and 5 deletions

View File

@@ -94,7 +94,7 @@ impl<'a> TankSensor<'a> {
});
}
pub fn get_flow_meter_value(&mut self) -> i16 {
fn get_flow_meter_value(&mut self) -> i16 {
FLOW_UNIT.lock(|refcell| {
refcell.borrow_mut().as_mut().map_or(0, |unit| unit.value())
})