Imported Upstream version 2.7.4

This commit is contained in:
Laurent Bigonville 2016-07-18 02:11:41 +02:00
parent fd413a3168
commit c9cb2187ee
290 changed files with 7473 additions and 2607 deletions

View file

@ -31,7 +31,7 @@
#include "apc-hid.h"
#include "usb-common.h"
#define APC_HID_VERSION "APC HID 0.95"
#define APC_HID_VERSION "APC HID 0.96"
/* APC */
#define APC_VENDORID 0x051d
@ -62,6 +62,11 @@ static void *general_apc_check(USBDevice_t *device)
{
int i = 0;
if (!device->Product) {
upslogx(LOG_WARNING, "device->Product is NULL so it is not possible to determine whether to activate max_report_size workaround");
return NULL;
}
/* Some models of Back-UPS overflow on some ReportID.
* This results in some data not being exposed and IO errors on
* WIN32, causing endless reconnection or driver's failure */