Temp readout fix for Pine A64

And possibily other devices:
This commit is contained in:
Daniel (Fourdee)
2016-08-27 16:36:54 +01:00
parent 8277a2a406
commit f43a337711
+1 -1
View File
@@ -1,5 +1,5 @@
<?php
$cmd = "echo $((`cat /sys/class/thermal/thermal_zone0/temp|cut -c1-2`)).$((`cat /sys/class/thermal/thermal_zone0/temp|cut -c3-4`))";
$cmd = "echo $((`cat /sys/class/thermal/thermal_zone0/temp | cut -c1-2`))";
$output = shell_exec($cmd);
$output = str_replace(["\r\n","\r","\n"],"", $output);
?>