From fde8da21e25f9d5bde76d89fe8e56d56de3148aa Mon Sep 17 00:00:00 2001 From: Arthur Coolen <coolen@astron.nl> Date: Tue, 8 Mar 2011 13:09:08 +0000 Subject: [PATCH] Bug1365: list of datapoints will only be triggered after a change, so it won't be handed every time a station connects/disconnects, but only after a real change. I hope this will avoid the dropping errormsg's effect --- MAC/Navigator2/scripts/monitorAlarms.ctl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MAC/Navigator2/scripts/monitorAlarms.ctl b/MAC/Navigator2/scripts/monitorAlarms.ctl index 3152339f55d..b3deda6bac6 100644 --- a/MAC/Navigator2/scripts/monitorAlarms.ctl +++ b/MAC/Navigator2/scripts/monitorAlarms.ctl @@ -30,7 +30,7 @@ // it monitors the state changes in the database, and will update the alarms accordingly // -bool bDebug=false; +bool bDebug=true; bool occupied=false; main () { @@ -112,9 +112,9 @@ void distSystemTriggered(string dp1, dyn_int systemList) { // also connect to the dpResetList dp to receive lists if dp's that need to be cleared from the global list and thus from the // datapoint in the database if (dpExists(DPNAME_NAVIGATOR + ".alarms.dpResetList")) { - dpConnect("resetTriggered",DPNAME_NAVIGATOR + ".alarms.dpResetList", - DPNAME_NAVIGATOR + ".alarms.dpResetStates", - DPNAME_NAVIGATOR + ".alarms.dpResetMsgs"); + dpConnect("resetTriggered",false,DPNAME_NAVIGATOR + ".alarms.dpResetList", + DPNAME_NAVIGATOR + ".alarms.dpResetStates", + DPNAME_NAVIGATOR + ".alarms.dpResetMsgs"); } else { DebugTN("monitorAlarms.ctl:distSystemTriggered|Couldn't connect to"+DPNAME_NAVIGATOR + ".alarms.dpResetList"); } -- GitLab