Displaying 2 results from an estimated 2 matches for "sec_varlist".
2005 Dec 19
0
new(er) SEC driver.
...(87)
#define SEC_TEST_TYPE (88)
#define SEC_BAUD_RATE (89)
/* Some baud rates for setup_serial() */
#define SEC_NUMBAUDS 5
struct baud_rate_t {
int rate;
int name;
};
/*
* Exhaustive information for each possible variable
*/
#define SEC_NUMVARS 90
#define SEC_MAX_VARSIZE 65
struct sec_varlist_t {
char *infotag; /* variable names from new-names.txt */
char *name; /* Human readable text (also in shared-tables.h) */
float unit; /* Variable should be scaled by this */
char *cmd; /* Command to send to get/set variable */
int field; /* Which returned field vari...
2007 Mar 20
1
Re: [nut-commits] svn commit r879 - in trunk: . drivers
....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].setcmd,"%s", value);
>
> ___________________________...