Displaying 2 results from an estimated 2 matches for "sec_setinfo".
2007 Mar 20
1
Re: [nut-commits] svn commit r879 - in trunk: . drivers
...39; will pick them up.
>
> Modified: trunk/drivers/gamatronic.c
> ==============================================================================
> --- trunk/drivers/gamatronic.c (original)
> +++ trunk/drivers/gamatronic.c Tue Mar 20 03:14:09 2007
> @@ -125,7 +125,7 @@
> void sec_setinfo(int varnum, char *value)
> {
>
> - if (sec_varlist[varnum].setcmd != ""){
> + if (*sec_varlist[varnum].setcmd){/*Not empty*/
>
> if (sec_varlist[varnum].flags == FLAG_STRING) {
> dstate_setinfo(sec_varlist[varnum].s...
2005 Dec 19
0
new(er) SEC driver.
...sec_querylist[q].command = cmd;
upsdebugx(SEC_LOG_LOWLEVEL, " Query %d is %s",q,cmd);
}
if (sec_querylist[q].command == cmd) {
sec_querylist[q].varnum[field-1] = varnum;
upsdebugx(SEC_LOG_LOWLEVEL, " Querying varnum %d",varnum);
break;
}
}
}
/*
* sec_setinfo(varnum, value)
*
* Update variable number <varnum> to value <value> in the info array.
*/
static void
sec_setinfo(int varnum, char *value)
{
char *s, buf[SEC_SIZE];
int i, e;
double d;
if (dstate_getinfo(sec_varlist[varnum].infotag) == 0) /* nothing to do */
return...