search for: phoenix_command

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

2009 Aug 02
2
Driver fix for Ippon BCP800 (06da/0003), blazer_usb.c
...sizeof(buf)); + /* ret = usb->get_interrupt(udev, (unsigned char *)buf, 8, 1000); */ + ret = usb_interrupt_read(udev, 0x81, buf, SMALLBUF, 1000); + upsdebugx(4, "flush(%d,%d) <- '%s'", ret, strlen(buf), buf); + if (ret < 1) + break; + } + return 0; +} + static int phoenix_command(const char *cmd, char *buf, size_t buflen) { char tmp[SMALLBUF]; @@ -103,6 +120,7 @@ memset(tmp, 0, sizeof(tmp)); snprintf(tmp, sizeof(tmp), "%s", cmd); + phoenix_flush_io(); for (i = 0; i < strlen(tmp); i += ret) { /* Write data in 8-byte chunks */ After this patch the...