Skip to content

lib: drivers: serial: Fix Windows COM parse - #228

Merged
joaoantoniocardoso merged 2 commits into
bluerobotics:masterfrom
patrickelectric:fix-windows-serial-com
Aug 24, 2026
Merged

lib: drivers: serial: Fix Windows COM parse#228
joaoantoniocardoso merged 2 commits into
bluerobotics:masterfrom
patrickelectric:fix-windows-serial-com

Conversation

@patrickelectric

Copy link
Copy Markdown
Member

Legacy serial:COM3:57600 stores the port as the URL host and the baud as the URL port, so path is empty.

Fix #211

@joaoantoniocardoso

Copy link
Copy Markdown
Member

Nice, I cannot test, but the code looks sane. The commits need to be cleaned up: there are multiple commits touching the same lines.

serialport prepends \\.\ unless the path already starts with \,
so /COM3 fails to open. Parse host or strip the slash on COM
ports, and accept baud from the URL port.

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
@patrickelectric

Copy link
Copy Markdown
Member Author

done, squashed to fix + tests

@joaoantoniocardoso
joaoantoniocardoso merged commit f358a4d into bluerobotics:master Aug 24, 2026
12 checks passed
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.

command line for windows appears to be not working

2 participants