use DBR_STRING parameter instead of just zero

This commit is contained in:
Jeff Hill
1995-05-23 20:45:08 +00:00
parent 47843d49a0
commit 67324dc7b7
+8 -3
View File
@@ -177,7 +177,7 @@ LOCAL int cagft(char *pname)
* fetch as each type
*/
for(i=0; i<=DBR_CTRL_DOUBLE; i++){
if(ca_field_type(chan_id)==0) {
if(ca_field_type(chan_id)==DBR_STRING) {
if( (i!=DBR_STRING)
&& (i!=DBR_STS_STRING)
&& (i!=DBR_TIME_STRING)
@@ -200,14 +200,19 @@ LOCAL int cagft(char *pname)
* before returning
*/
while(ntries){
ca_pend_event(1.0);
unsigned oldOut;
oldOut = outstanding;
ca_pend_event (5.0);
if(!outstanding){
printf("\n\n");
return OK;
}
ntries--;
if (outstanding==oldOut) {
ntries--;
}
}
return ERROR;