bugst / go-serial

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

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

Open zyxkad opened 5 months ago

zyxkad commented 5 months ago

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