mikepb / go-serial

Go binding to libserialport for serial port functionality.
53 stars 28 forks source link

Blocking read now returns when device is unplugged. i.e. device node is removed #11

Closed jaapgeurts closed 4 years ago

jaapgeurts commented 4 years ago

Block read calls keeps blocking even when the device node disappears. This happens when an Arduino is unplugged. Fixed, by returning a failure when EOF is returned by read(). I.e. the serial port is closed.

jaapgeurts commented 3 years ago

Thanks