search for: parse_temperature

Displaying 1 result from an estimated 1 matches for "parse_temperature".

2007 Jan 04
2
Re: [nut-Patches][303751] Checking UPS Temperature
...; + } > +//EW <<<<<< > + > /* NOCOMMWARNTIME <num> */ > if (!strcmp(arg[0], "NOCOMMWARNTIME")) { > @@ -1563,4 +1600,31 @@ > } > > +//EW >>>>>> > +/* deal with the ups.temperature for this ups */ > +static void parse_temperature(utype *ups, char *temperature) > +{ > + double temp; > + > + debug(" temperature: [%s]\n", temperature); > + > + /* empty response is ignored -- not all ups return temperatures */ > + if (!strcmp(temperature, "")) { > + clearflag(&ups->status,...