Skip to content

Serial Ports being overwritten inside utilities.py #3767

@GeorgSavic-Baumzwiebel

Description

@GeorgSavic-Baumzwiebel

The Usage of .grep() in this Context results in a non deterministic approach to finding the Serial Port.

cdc = next(serial.tools.list_ports.grep(name))

for example if I want to access Port COM9 it will overwrite it to COM99. The same thing can be observed with COM11 and COM111 as Windows doesn't sort the Serial Ports by their numerical value. I have not found a solution to this Problem but I don't think it is needed to run the function when the Port is clearly matching the guidelines of how a serial Port should be named.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions