search for: w_valu

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

Did you mean: w_value
2010 Jan 12
1
Tripplite_usb
...checks which protocol the UPS is using and then resets the watchdog if it is not SMARTPRO protocol. ====================================================================== Tripplite_usb.c 977,987d977 < /* Reset watchdog: */ < ret = send_cmd(w_msg, sizeof(w_msg), w_value, sizeof(w_value)-1); < if(ret <= 0) { < if(ret == -EPIPE) { < fatalx(EXIT_FAILURE, "Could not reset watchdog. Please check and" <...
2008 Jul 10
2
[PATCH] tripplite driver updates
...= '\0'; - ser_flush_in(upsfd, NULL, 0); - return i; + ret = i; +out: + ser_flush_io(upsfd); + return ret; } static void ups_sync(void) @@ -301,14 +285,17 @@ void upsdrv_initinfo(void) int va; long w, l; - /* Detect the UPS or die. */ ups_sync(); - send_cmd(":W\r", w_value, sizeof w_value); - send_cmd(":L\r", l_value, sizeof l_value); - send_cmd(":V\r", v_value, sizeof v_value); - send_cmd(":X\r", x_value, sizeof x_value); + while (send_cmd(":W\r", w_value, sizeof w_value) < 1) + sleep(1); + while (send_cmd(":L\r&q...