search for: check_mtab2

Displaying 2 results from an estimated 2 matches for "check_mtab2".

2006 Apr 26
1
RE nut 2.0 fentonups and Xanto S3000R
...Apr 25 23:33:03 2006 +++ drivers/fentonups.c Wed Apr 26 00:11:06 2006 @@ -33,14 +33,17 @@ static float lowvolt = 0, voltrange; static int lownorm, highnorm; /* handle devices which don't give a properly formatted I string */ -static int check_mtab2(const char *raw) +static int check_mtab2(const char *raw, int israw) { int i; char *cooked; - /* trim off the leading # and any trailing spaces */ - cooked = xstrdup(&raw[1]); - rtrim(cooked...
2006 Jul 24
2
fentonups driver patch for Effekta MHD3000 UPS
...ret; + + ret = ser_send(upsfd, "\r"); + + usleep(300000); + + if (ret != 1) + upslog(LOG_ERR, "sendcr_and_clear_buf: ser_send failed"); + ser_flush_in(upsfd, "", 0); + } + /* handle devices which don't give a properly formatted I string */ static int check_mtab2(const char *raw) { *************** *** 54,59 **** --- 68,74 ---- chrglow = mtab2[i].chrglow; chrgrange = mtab2[i].chrgrange; cap_upstemp = mtab2[i].has_temp; + is_online = mtab2[i].is_online; dstate_setinfo("input.transfer.low", "%d", mtab2[i].l...