aboutsummaryrefslogtreecommitdiffstats
path: root/usbh/src/device.rs
diff options
context:
space:
mode:
Diffstat (limited to 'usbh/src/device.rs')
-rw-r--r--usbh/src/device.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/usbh/src/device.rs b/usbh/src/device.rs
index eeaa33b..bdb993e 100644
--- a/usbh/src/device.rs
+++ b/usbh/src/device.rs
@@ -1,4 +1,4 @@
-use super::pipe::{Pipe, PipeErr, PipeTable};
+use super::pipe::{Pipe, PipeErr, PipeTable, NO_DATA_STAGE};
use super::usbproto::*;
use core::convert::TryInto;
@@ -199,7 +199,7 @@ impl Device {
RequestCode::SetConfiguration,
WValue::from((conf, 0)),
0,
- Option::<&mut ()>::None,
+ NO_DATA_STAGE,
self.millis,
)?;
debug!(" -- configuration set");
@@ -214,7 +214,7 @@ impl Device {
RequestCode::GetInterface, // This is also idle, but can't have two enums with the same value.
WValue::from((0, 0)),
0,
- Option::<&mut ()>::None,
+ NO_DATA_STAGE,
self.millis,
)?;
debug!(" -- idle set");