Skip to content

Do not bail out if invalid PID is detected during board listing #447

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Oct 18, 2019

The USB PID, in theory, should be always filled with a value, but for some
reason the serial library is not detecting it correctly.

This should fix a fatal error on MacOSX, for some devices the returned
PID is empty:

$ lsusb
2019-10-18 09:47:32.186 system_profiler[34964:3584353] SPUSBDevice: IOCreatePlugInInterfaceForService failed 0xe00002be
Bus 020 Device 000: ID 05ac:8600 Apple Inc. Apple T1 Controller
Bus 000 Device 001: ID 1d6b:ISPT Linux Foundation USB 3.0 Bus
Bus 000 Device 001: ID 1d6b:CIAR Linux Foundation USB 3.1 Bus
Bus 001 Device 001: ID 1d6b:CIAR Linux Foundation USB 3.1 Bus

This fix should increase robustness until the underlying bug is fixed.

The USB PID, in theory, should be always filled with a value, but for some
reason the serial library is not detecting it correctly.

This should fix a fatal error on MacOSX, for some devices the returned
PID is empty:

  $ lsusb
  2019-10-18 09:47:32.186 system_profiler[34964:3584353] SPUSBDevice: IOCreatePlugInInterfaceForService failed 0xe00002be
  Bus 020 Device 000: ID 05ac:8600 Apple Inc. Apple T1 Controller
  Bus 000 Device 001: ID 1d6b:ISPT Linux Foundation USB 3.0 Bus
  Bus 000 Device 001: ID 1d6b:CIAR Linux Foundation USB 3.1 Bus
  Bus 001 Device 001: ID 1d6b:CIAR Linux Foundation USB 3.1 Bus

This fix should increase robustness until the underlying bug is fixed.
@cmaglie
Copy link
Member Author

cmaglie commented Oct 18, 2019

This fix should increase robustness until the underlying bug is fixed.

the underlying bug has been fixed in #448, there is no more point in merging this one.

@cmaglie cmaglie closed this Oct 18, 2019
@cmaglie cmaglie deleted the cmaglie/invalid-pid-fix branch October 18, 2019 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant