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