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:
@@ -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())
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user