Skip to content
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

My serial port has been overwritten. #71

Open
Leewux opened this issue Nov 6, 2024 · 0 comments
Open

My serial port has been overwritten. #71

Leewux opened this issue Nov 6, 2024 · 0 comments

Comments

@Leewux
Copy link

Leewux commented Nov 6, 2024

Hello, developer.
I implemented a USB to dual virtual serial port using STM32, but they have the same name in the device manager, differing only by their port numbers. When I used the GUI tool, I found that it could only recognize one of my serial ports. It wasn't until I opened the source code of the GUI tool that I discovered an issue.
image
Here is around line 100 of the file <setup_window.py>. The descriptions of the serial ports, which are the names of my two serial ports, are used as the keys in a dictionary.Since the descriptions can easily be repetitive, if they are duplicated, the second serial port will overwrite the first one. I'm wondering why not use "sys_name," which is the obtained serial number, as the key instead?

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

No branches or pull requests

1 participant