usbtmc icon indicating copy to clipboard operation
usbtmc copied to clipboard

Don't read fixed size of 1024

Open matthewrankin opened this issue 8 years ago • 1 comments

In device.go the Read(p []byte) method uses a fixed length of 1024 to read the USBTMC bulk-in endpoint. Seems like I should refactor this.

matthewrankin avatar Jun 28 '17 17:06 matthewrankin

The magic number that needs to be eliminated is no longer 1024. It is now 512 in func (d *Device) readRemoveHeader(p []byte) (n int, err error).

matthewrankin avatar Dec 27 '19 22:12 matthewrankin