- Minor fixes
This commit is contained in:
@@ -544,6 +544,9 @@ static int EL737Set(struct __COUNTER *self, char *name, int iCter,
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
} else if(strcmp(name,"debug") == 0){
|
||||
setRS232Debug(pPriv->controller,(int)fVal);
|
||||
return 1;
|
||||
} else {
|
||||
self->iErrorCode = UNKNOWNPAR;
|
||||
return 0;
|
||||
@@ -567,6 +570,9 @@ static int EL737Get(struct __COUNTER *self, char *name, int iCter,
|
||||
}
|
||||
sscanf(pReply,"%f", fVal);
|
||||
return 1;
|
||||
} else if(strcmp(name,"debug") == 0){
|
||||
*fVal = pPriv->controller->debug;
|
||||
return 1;
|
||||
} else {
|
||||
self->iErrorCode = UNKNOWNPAR;
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user