From 50d50ab51ada2ad0ba3c7a3a167fa94abcab2e33 Mon Sep 17 00:00:00 2001 From: Karl Hudgell Date: Thu, 1 Dec 2016 15:00:52 +0000 Subject: [PATCH] = fix --- index.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index 6c3125c..2d86b7c 100644 --- a/index.php +++ b/index.php @@ -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"; }