Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not use wrong serial port (flipperdevices#148)
* Do not use a device that fails to open When the USB device fails to open the application continues to use the device with unfilled device data with empty serial number. Then the application attempts to find a serial port matching the unfilled device info structure. If you happen to have a Chinese serial port with empty serial number the application will attempt to use it. Invalidate the device info when filling out the data fails. Signed-off-by: Michal Suchanek <[email protected]> * Properly report USB device error Currently the return value from libusb functions is ignored, and only a generic error message is printed. Use the libusb facility for converting error codes to error messages to provide meaningful error message to the user. Signed-off-by: Michal Suchanek <[email protected]> Signed-off-by: Michal Suchanek <[email protected]>
- Loading branch information