From a55abe90767d7bfbef91e1033c7f4da3c986b6d2 Mon Sep 17 00:00:00 2001 From: Sebastian Zagrodzki Date: Wed, 26 Apr 2017 21:51:00 +0200 Subject: [PATCH] Disable Write streams for now. --- usb/transfer_stream.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/usb/transfer_stream.go b/usb/transfer_stream.go index 0190dc7..c782474 100644 --- a/usb/transfer_stream.go +++ b/usb/transfer_stream.go @@ -131,6 +131,8 @@ type WriteStream struct { // mean that data was written to the device, only that it was written to the // buffer. Only a call to Flush() that returns nil error guarantees that // all transfers have succeeded. +// TODO(sebek): not implemented and tested yet +/* func (w WriteStream) Write(p []byte) (int, error) { s := w.s written := 0 @@ -153,6 +155,7 @@ func (w WriteStream) Write(p []byte) (int, error) { func (w WriteStream) Flush() error { return nil } +*/ func newStream(tt []transferIntf, submit bool) *stream { s := &stream{