aboutsummaryrefslogtreecommitdiff
path: root/Bootloaders
diff options
context:
space:
mode:
authorDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2012-03-04 16:15:59 +0000
committerDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2012-03-04 16:15:59 +0000
commitce40f19cfc51f640013874e80d656b48a9ff5b2b (patch)
tree358b663f2d9e2dbd1555af6ab6ee174da26711e1 /Bootloaders
parent18a9ae43a22e260f7510fcd5c7ccf604508c4ff0 (diff)
Update code and StaticAnlysisTest so that missingInclude warnings do not have to be suppressed, and so that all code except for third party libraries can be checked.
Update SingleUSBModeTest makefile to separate out the messages from the test commands. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2079 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Bootloaders')
-rw-r--r--Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c b/Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c
index 4fd6ccf1..200f4068 100644
--- a/Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c
+++ b/Bootloaders/HID/HostLoaderApp/hid_bootloader_cli.c
@@ -195,7 +195,9 @@ usb_dev_handle * open_usb_device(int vid, int pid)
struct usb_bus *bus;
struct usb_device *dev;
usb_dev_handle *h;
+ #ifdef LIBUSB_HAS_GET_DRIVER_NP
char buf[128];
+ #endif
int r;
usb_init();
@@ -390,7 +392,6 @@ int write_usb_device(HANDLE h, void *buf, int len, int timeout)
if (r != WAIT_OBJECT_0) return 0;
}
if (!GetOverlappedResult(h, &ov, &n, FALSE)) return 0;
- if (n <= 0) return 0;
return 1;
}