Browse Source

line 1068: changed tolerances for FPD low voltage monitoring - on/off indicator

Thomas Thümmler 11 months ago
parent
commit
c83282a3c4
1 changed files with 2 additions and 1 deletions
  1. 2 1
      SDS_status_main.php

+ 2 - 1
SDS_status_main.php

@@ -1066,13 +1066,14 @@ if ($PSmode == 5)
 	// detector powered
 
 	$lowVoltage = array( 12, 8, 6, 6, 120 );
+	$lowVoltageTol = array( 0.2, 0.2, 0.2, 0.2, 0.5);
 	$link = "";
 	$pic = "fpdOn";
 	$text = "ON";
 	for ($id = 0; $id < 5; $id++)
 	{
 		$value = $adeiValue[6][4 + $id];
-		if (!($value < $lowVoltage[$id] + 0.2 && $value > $lowVoltage[$id] - 0.2))
+		if (!($value < $lowVoltage[$id] + $lowVoltageTol[$id] && $value > $lowVoltage[$id] - + $lowVoltageTol[$id]))
 		{
 			$pic = "fpdOff";
 			$text = "OFF";