diff options
Diffstat (limited to 'usbh/src/pipe.rs')
-rw-r--r-- | usbh/src/pipe.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usbh/src/pipe.rs b/usbh/src/pipe.rs index 0a8503b..beac863 100644 --- a/usbh/src/pipe.rs +++ b/usbh/src/pipe.rs @@ -142,13 +142,13 @@ impl Pipe<'_, '_> { // TODO: data stage, has up to 5,000ms (in 500ms // per-packet chunks) to complete. cf ยง9.2.6.4 of USB 2.0. match bm_request_type.direction()? { - USBSetupDirection::DeviceToHost => { + RequestDirection::DeviceToHost => { trace!("buf0: {:?}", &b); self.in_transfer(&b, NAK_LIMIT, millis)?; trace!("buf1: {:?}", &b); } - USBSetupDirection::HostToDevice => { + RequestDirection::HostToDevice => { debug!("Should OUT for {}b", b.len); } } @@ -166,8 +166,8 @@ impl Pipe<'_, '_> { }); let token = match bm_request_type.direction()? { - USBSetupDirection::DeviceToHost => USBToken::Out, - USBSetupDirection::HostToDevice => USBToken::In, + RequestDirection::DeviceToHost => USBToken::Out, + RequestDirection::HostToDevice => USBToken::In, }; // TODO: should probably make `pipe.send` have optional |