Skip to content

My serial port has been overwritten. #71

@Lewsol

Description

@Lewsol

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions