diff --git a/PythonServer/screens/odh.py b/PythonServer/screens/odh.py index e142baed19c74223f62d7c2699a7dae14f004990..0929fe2cb898d891069c11b2a09c70d40d2dc25e 100755 --- a/PythonServer/screens/odh.py +++ b/PythonServer/screens/odh.py @@ -114,14 +114,12 @@ class odhScreen(Thread): status = False if epics_dict[pv[0:-6] + "DHWarning"].connected: - json_dict[pv]["status"] += epics_dict[ - pv[0:-6] + "DHWarning" - ].value + if epics_dict[pv[0:-6] + "DHWarning"].value == 1: + json_dict[pv]["status"] = 1 status = True if epics_dict[pv[0:-6] + "DHAlarm"].connected: - json_dict[pv]["status"] += epics_dict[ - pv[0:-6] + "DHAlarm" - ].value + if epics_dict[pv[0:-6] + "DHAlarm"].value == 1: + json_dict[pv]["status"] = 2 status = True if not status: json_dict[pv]["status"] = 3