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
Generate a device ID if expected fields are missing #234
Conversation
e2b5f69
to
4202fdd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I want to generate a device ID string in this case, but want to dig a bit more to be sure. But in concept I am OK with this change.
802719b
to
fd91673
Compare
fd91673
to
d6f78c1
Compare
Alright, second attempt. Feedback appreciated (maybe Did test this with
Trailing spaces are from the actual product name... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pushed a slightly different (but similar) change - basically always get the serial, manufacturer, and product strings and cache the device ID. Let me know what you think!
Thanks Michael. This is more in line with the alternative implementation I was thinking of. My only comment is that setting Refs: |
Some devices are not setting the device ID properly. In the case of the cheap printer I have, it's just whitespace. Without this change I end up with
usb://Unknown/Unknown?serial=Printer
. Not very useful for lprint'sautoadd
for example...