Working on iso
This commit is contained in:
@@ -25,7 +25,7 @@ type endpoint struct {
|
||||
}
|
||||
|
||||
func (e *endpoint) Read(buf []byte) (int, error) {
|
||||
if EndpointDirection(e.Address)&ENDPOINT_DIR_MASK != ENDPOINT_DIR_OUT {
|
||||
if EndpointDirection(e.Address)&ENDPOINT_DIR_MASK != ENDPOINT_DIR_IN {
|
||||
return 0, fmt.Errorf("usb: read: not an IN endpoint")
|
||||
}
|
||||
|
||||
@@ -40,8 +40,8 @@ func (e *endpoint) Write(buf []byte) (int, error) {
|
||||
return e.xfer(e, buf, e.WriteTimeout)
|
||||
}
|
||||
|
||||
func (e *endpoint) Interface() InterfaceSetup { return InterfaceSetup{} }
|
||||
func (e *endpoint) Info() EndpointInfo { return EndpointInfo{} }
|
||||
func (e *endpoint) Interface() InterfaceSetup { return e.InterfaceSetup }
|
||||
func (e *endpoint) Info() EndpointInfo { return e.EndpointInfo }
|
||||
|
||||
// TODO(kevlar): (*Endpoint).Close
|
||||
|
||||
|
Reference in New Issue
Block a user