diff options
author | Hannes Ellinger <hannes.ellinger@eas.iis.fraunhofer.de> | 2016-07-12 15:13:37 +0200 |
---|---|---|
committer | Hannes Ellinger <hannes.ellinger@eas.iis.fraunhofer.de> | 2016-07-13 17:49:35 +0200 |
commit | 4a9bf38b977617160913d06eb99bbd2d7ce6b6ce (patch) | |
tree | caf67bb5474c70feaac0b6511e1232b60fa2a7b3 /host/libubertooth | |
parent | b9f82e9925b8da64b5fdf110a4c83efc786aa247 (diff) |
fix bootloader USB connection loss in DFU mode
Diffstat (limited to 'host/libubertooth')
-rw-r--r-- | host/libubertooth/src/ubertooth_control.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/host/libubertooth/src/ubertooth_control.c b/host/libubertooth/src/ubertooth_control.c index c9ccc3b..0d2a4c0 100644 --- a/host/libubertooth/src/ubertooth_control.c +++ b/host/libubertooth/src/ubertooth_control.c @@ -431,9 +431,8 @@ int cmd_flash(struct libusb_device_handle* devh) r = libusb_control_transfer(devh, CTRL_OUT, UBERTOOTH_FLASH, 0, 0, NULL, 0, 1000); - /* LIBUSB_ERROR_PIPE or LIBUSB_ERROR_OTHER is expected */ - if ((r != LIBUSB_ERROR_PIPE) && (r != LIBUSB_ERROR_OTHER)) { - show_libusb_error(r); + if (r != LIBUSB_SUCCESS) { + show_libusb_error(r); return r; } return 0; |