We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
func (p *Port) Close() error { return p.f.Close() }
func newOverlapped() (*syscall.Overlapped, error) { var overlapped syscall.Overlapped r, _, err := syscall.Syscall6(nCreateEvent, 4, 0, 1, 0, 0, 0, 0) if r == 0 { return nil, err } overlapped.HEvent = syscall.Handle(r) return &overlapped, nil }
The text was updated successfully, but these errors were encountered:
the same question,anyone who fixed it
Sorry, something went wrong.
s, err := serial.OpenPort(c) if err != nil { s.Close() log.Fatal(err) } defer s.Close()
solve it .
I have the same problem, sometimes, when close() is executed, the library blocks the application waiting for something
No branches or pull requests
func (p *Port) Close() error {
return p.f.Close()
}
func newOverlapped() (*syscall.Overlapped, error) {
var overlapped syscall.Overlapped
r, _, err := syscall.Syscall6(nCreateEvent, 4, 0, 1, 0, 0, 0, 0)
if r == 0 {
return nil, err
}
overlapped.HEvent = syscall.Handle(r)
return &overlapped, nil
}
The text was updated successfully, but these errors were encountered: