diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/of_node.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/of_node.rs b/src/of_node.rs index 5dff2a0..01806df 100644 --- a/src/of_node.rs +++ b/src/of_node.rs @@ -12,7 +12,8 @@ fn read_u32_node(node_name: &str) -> Result<u32> { "/sys/devices/platform/auxdisplay/of_node/{}", node_name ))?; - Ok(f.read_u32::<BigEndian>()?) + let value = f.read_u32::<BigEndian>()?; + Ok(value) } pub fn display_height_chars() -> Result<u32> { |