proper search for beacon period parm

This commit is contained in:
Jeff Hill
2002-08-09 23:08:41 +00:00
parent dcdd9c2247
commit a630ecefc9

View File

@@ -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 ) {