jba Moved set of alarm stat and sevr to macros

This commit is contained in:
Janet B. Anderson
1991-12-05 13:40:07 +00:00
parent 5f1357a45d
commit a69a2aa8ae
39 changed files with 207 additions and 439 deletions
+4 -9
View File
@@ -29,8 +29,7 @@
*
* Modification Log:
* -----------------
* .01 mm-dd-yy iii Comment
* .02 mm-dd-yy iii Comment
* .01 11-11-91 jba Moved set of alarm stat and sevr to macros
* ...
*/
@@ -41,6 +40,7 @@
#include <alarm.h>
#include <dbDefs.h>
#include <dbAccess.h>
#include <recSup.h>
#include <devSup.h>
#include <link.h>
#include <special.h>
@@ -80,18 +80,13 @@ static long write_ao(pao)
status = dbPutLink(&pao->out.value.db_link,pao,DBR_LONG,
&pao->rval,1L);
if(status!=0) {
if(pao->nsev<VALID_ALARM) {
pao->nsev = VALID_ALARM;
pao->nsta = LINK_ALARM;
}
recGblSetSevr(pao,LINK_ALARM,VALID_ALARM);
}
break;
case (CA_LINK) :
break;
default :
if(pao->nsev<VALID_ALARM) {
pao->nsev = VALID_ALARM;
pao->nsta = SOFT_ALARM;
if(recGblSetSevr(pao,SOFT_ALARM,VALID_ALARM)){
if(pao->stat!=SOFT_ALARM) {
strcpy(message,pao->name);
strcat(message,": devAoSoftRaw (write_ao) Illegal OUT field");