forked from M-Labs/ionpak-thermostat
remove unnecessary mut
This commit is contained in:
parent
e4f513d444
commit
c7f4dba53a
|
@ -63,7 +63,7 @@ impl Controller {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
pub fn is_within(&mut self, tolerance: f32) -> bool {
|
pub fn is_within(&self, tolerance: f32) -> bool {
|
||||||
match self.last_input {
|
match self.last_input {
|
||||||
None => false,
|
None => false,
|
||||||
Some(last_input) => (last_input - self.target).abs() < tolerance
|
Some(last_input) => (last_input - self.target).abs() < tolerance
|
||||||
|
|
Loading…
Reference in New Issue