fix raspberry mesure temp command
This commit is contained in:
1 parent
261a29d3bf
commit
9276925e8b
1 file changed
+1
-2
@@ -14,8 +14,7 @@ pub fn get_temperature() -> f32 {
|
||||
temperature = temperature_string.parse::<f32>().unwrap();
|
||||
temperature /= 1000.0;
|
||||
} else {
|
||||
let temperature_command = Command::new("sudo")
|
||||
.arg("/opt/vc/bin/vcgencmd")
|
||||
let temperature_command = Command::new("/usr/bin/vcgencmd")
|
||||
.arg("measure_temp")
|
||||
.output()
|
||||
.unwrap_or_else(|e| panic!("failed to execute process: {}", e));
|
||||
|
||||
Reference in new issue
Block a user