diff --git a/src/freezer.rs b/src/freezer.rs index 7f0fc1c..1ced04d 100644 --- a/src/freezer.rs +++ b/src/freezer.rs @@ -130,7 +130,7 @@ impl FreezerController { let mut s = String::new(); let res = file.read_to_string(&mut s); match res { - Ok(_) => match s.as_ref() { + Ok(_) => match s.trim().as_ref() { "FROZEN" => Ok(FreezerState::Frozen), "THAWED" => Ok(FreezerState::Thawed), "1" => Ok(FreezerState::Frozen),