common: bump revision.

This commit is contained in:
Solomon Peachy 2013-07-06 10:12:19 -04:00
parent df9a207f8e
commit e1ea0359fd

View file

@ -28,7 +28,7 @@
#include <libusb-1.0/libusb.h>
#include <arpa/inet.h>
#define BACKEND_VERSION "0.1"
#define BACKEND_VERSION "0.2"
#define STR_LEN_MAX 64
#define DEBUG( ... ) fprintf(stderr, "DEBUG: " __VA_ARGS__ )
@ -128,8 +128,8 @@ static int send_data(struct libusb_device_handle *dev, uint8_t endp,
while (len) {
int ret = libusb_bulk_transfer(dev, endp,
buf, len,
&num, 10000);
buf, (len > 65536) ? 65536: len,
&num, 5000);
if (ret < 0) {
ERROR("Failure to send data to printer (libusb error %d: (%d/%d to 0x%02x))\n", ret, num, len, endp);
return ret;