From a630ecefc95ee61bf56cb3a2b7534a685df7509c Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Fri, 9 Aug 2002 23:08:41 +0000 Subject: [PATCH] proper search for beacon period parm --- src/ca/acctst.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/ca/acctst.c b/src/ca/acctst.c index b4493c030..9842f4cbd 100644 --- a/src/ca/acctst.c +++ b/src/ca/acctst.c @@ -2214,8 +2214,15 @@ void verifyReasonableBeaconPeriod ( chid chan ) double beaconPeriod, expectedBeaconPeriod, error, percentError; unsigned attempts = 0u; - long status = envGetDoubleConfigParam ( - &EPICS_CAS_BEACON_PERIOD, &expectedBeaconPeriod ); + int status; + if ( envGetConfigParamPtr ( & EPICS_CAS_BEACON_PERIOD ) ) { + status = envGetDoubleConfigParam ( & EPICS_CAS_BEACON_PERIOD, + & expectedBeaconPeriod ); + } + else { + status = envGetDoubleConfigParam ( & EPICS_CA_BEACON_PERIOD, + & expectedBeaconPeriod ); + } assert ( status >=0 ); while ( 1 ) {