fix
This commit is contained in:
parent
e114201cc9
commit
f7c0919e8e
@ -79,15 +79,6 @@ for ($count = 1; $count < sizeof($diskfree); $count ++) {
|
|||||||
//Read in RGB file
|
//Read in RGB file
|
||||||
$file = file_get_contents('/home/pi/hugh/rgb', FILE_USE_INCLUDE_PATH);
|
$file = file_get_contents('/home/pi/hugh/rgb', FILE_USE_INCLUDE_PATH);
|
||||||
|
|
||||||
if (($file > "0, 0, 0") {
|
|
||||||
$rgb = "Off";
|
|
||||||
} else if ($file > "255, 0, 0") {
|
|
||||||
$rgb = "Red";
|
|
||||||
} else if ($file > "0, 255, 0") {
|
|
||||||
$rgb = "Green";
|
|
||||||
} else if ($file > "0, 0, 255") {
|
|
||||||
$rgb = "Blue";
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Rendering Page.
|
// Rendering Page.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user