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

get invalid port name on Windows(commit 0996f84) #194

Open
fcying opened this issue Aug 9, 2024 · 0 comments
Open

get invalid port name on Windows(commit 0996f84) #194

fcying opened this issue Aug 9, 2024 · 0 comments

Comments

@fcying
Copy link

fcying commented Aug 9, 2024

in the pre commit(f5a4685), use Refresh func get port name Found port: COM1
last commit(0996f84), Found port: \Device\Serial0

func Refresh() []string {
	ports, err := serial.GetPortsList()
	if err != nil {
		log.Fatal(err)
	}
	for _, port := range ports {
		log.Printf("Found port: %v\n", port)
	}
	return ports
}

Is there a way to switch back to the original display?

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