bugst / go-serial

A cross-platform serial library for go-lang.
BSD 3-Clause "New" or "Revised" License
617 stars 188 forks source link

fix port.Read will returns PortClosed error on linux if the buffer size is zero #189

Open zyxkad opened 2 days ago

zyxkad commented 2 days ago

I was confused of the return error when I did buf := make([]byte, 0, 1024) :/