Skip to content

Correction of USB device detection logic#1

Open
smandon wants to merge 2 commits intodrivin:pr-892-drivinfrom
smandon:detection-correction
Open

Correction of USB device detection logic#1
smandon wants to merge 2 commits intodrivin:pr-892-drivinfrom
smandon:detection-correction

Conversation

@smandon
Copy link
Copy Markdown

@smandon smandon commented Apr 6, 2026

Hi,

When you added the support for the 9.2" model, you introduced a flaw in the USB device detection logic.

In find_usb_device() you loop over product ids in the PRODUCT_ID list but never stop when a device is found, which means it will only be able to detect devices matching the last product id in the list (i.e the 9.2" model) and raise ValueError for other models (the 8.8" model currently).

I just added a break once a device is found, so that the 8.8" model is properly detected (and other models that might be added later).

smandon added 2 commits April 6, 2026 13:43
The new 4.6" model has 320x960 resolution and uses the same USB protocol as the 8.8" v1.1 and 9.2 models.
@smandon
Copy link
Copy Markdown
Author

smandon commented Apr 6, 2026

I also made a commit that adds support for the new 4.6" model. It uses the same protocol as the 8.8 v1.1 and 9.2.

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