Browse Source

fixed typo

Thomas Thümmler 4 years ago
parent
commit
2ba9025155
1 changed files with 5 additions and 25 deletions
  1. 5 25
      SDS_status_main.php

+ 5 - 25
SDS_status_main.php

@@ -419,7 +419,7 @@ if (substr($ip, 0, 13) == "141.52.12.227")
 
 	// LFCS
 
-	$tol = 0.2;
+	$tol = 0.3;
 	$text = "Unkn";
 	$color = "#FFD800";
         $lfcs_array_offset = 2;
@@ -1133,38 +1133,18 @@ if ($PSmode != 5)
 	$color = "#000000";
 	if ($value < $min) $color = "#0026FF";
 	else if ($value > $max) $color = "#FF0000";
-    if (($PSmode != 5) & ($value < 400)) placeTextWithLink(307, 805, "T<sub>0270</sub> = " . sprintf('%.1F &#176;C', $value), 160, 4, $color, "tank temperature 0270", $adeiChannel[20][2]);
-    if (($PSmode == 5) & ($value < 400)) placeTextWithLink(110, 677, "T<sub>0270</sub> = " . sprintf('%.1F &#176;C', $value), 160, 4, $color, "tank temperature 0270", $adeiChannel[20][2]);
+    if (($MSmode != 5) & ($value < 400)) placeTextWithLink(307, 805, "T<sub>0270</sub> = " . sprintf('%.1F &#176;C', $value), 160, 4, $color, "tank temperature 0270", $adeiChannel[20][2]);
+    if (($MSmode == 5) & ($value < 400)) placeTextWithLink(110, 677, "T<sub>0270</sub> = " . sprintf('%.1F &#176;C', $value), 160, 4, $color, "tank temperature 0270", $adeiChannel[20][2]);
 
 	// 0283
 	$value = $adeiValue[20][3];
 	$color = "#000000";
 	if ($value < $min) $color = "#0026FF";
 	else if ($value > $max) $color = "#FF0000";
-	if (($PSmode != 5) & ($value < 400)) placeTextWithLink(307, 963, "T<sub>0283</sub> = " . sprintf('%.1F &#176;C', $value), 160, 4, $color, "tank temperature 0283", $adeiChannel[20][3]);
-	if (($PSmode == 5) & ($value < 400)) placeTextWithLink(130, 677, "T<sub>0283</sub> = " . sprintf('%.1F &#176;C', $value), 160, 4, $color, "tank temperature 0283", $adeiChannel[20][3]);
-
-/*
-	// 0066
-	$value = $adeiValue[20][0] - $adeiValue[20][4];
-	$color = "#000000";
-	if ($value < 50) placeTextWithLink(110+16, 973-30, sprintf('(%.2F &#176;C/h)', $value), 130, 4, $color, "IE temperature 0066 (ramp speed)", $adeiChannel[20][0]);
+	if (($MSmode != 5) & ($value < 400)) placeTextWithLink(307, 963, "T<sub>0283</sub> = " . sprintf('%.1F &#176;C', $value), 160, 4, $color, "tank temperature 0283", $adeiChannel[20][3]);
+	if (($MSmode == 5) & ($value < 400)) placeTextWithLink(130, 677, "T<sub>0283</sub> = " . sprintf('%.1F &#176;C', $value), 160, 4, $color, "tank temperature 0283", $adeiChannel[20][3]);
 
-	// 0076
-	$value = $adeiValue[20][1] - $adeiValue[20][5];
-	$color = "#000000";
-	if ($value < 50) placeTextWithLink(126+24+16, 973-30, sprintf('(%.2F &#176;C/h)', $value), 130, 4, $color, "IE temperature 0076 (ramp speed)", $adeiChannel[20][1]);
 
-	// 0270
-	$value = $adeiValue[20][2] - $adeiValue[20][6];
-	$color = "#000000";
-	if ($value < 50) placeTextWithLink(307+16, 845-30, sprintf('(%.2F &#176;C/h)', $value), 130, 4, $color, "tank temperature 0270 (ramp speed)", $adeiChannel[20][2]);
-
-	// 0283
-	$value = $adeiValue[20][3] - $adeiValue[20][7];
-	$color = "#000000";
-	if ($value < 50) placeTextWithLink(307+16, 973-30, sprintf('(%.2F &#176;C/h)', $value), 130, 4, $color, "tank temperature 0283 (ramp speed)", $adeiChannel[20][3]);
-*/
 	$color = "#000000";
 	// ########## STS ##########
 	placeTextLeftWithWebsiteLink(370, 1, "&larr;STS", 60, 5, $color, "Link to STS Status Overview", "https://status-sts.kaas.kit.edu/");