aboutsummaryrefslogtreecommitdiffstats
path: root/usbh/src/lib.rs
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2019-07-28 12:12:41 -0400
committerBrian Cully <bjc@kublai.com>2019-07-28 12:12:41 -0400
commitd13c53906ffba1495f49fcf90f1f3260bb17703f (patch)
tree9f19f3487210c05ed8921020fe11a92d1ab9bf09 /usbh/src/lib.rs
parentd5927616c9fa4feb4cf819c81e26536ca97b1c4e (diff)
downloadsamd21-demo-d13c53906ffba1495f49fcf90f1f3260bb17703f.tar.gz
samd21-demo-d13c53906ffba1495f49fcf90f1f3260bb17703f.zip
Add pipe::NO_DATA_STAGE const for convenience.
For use in `control_req`'s buffer argument if no data stage is required. It was either this or have a separate function.
Diffstat (limited to 'usbh/src/lib.rs')
-rwxr-xr-xusbh/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/usbh/src/lib.rs b/usbh/src/lib.rs
index 94230b2..70acc31 100755
--- a/usbh/src/lib.rs
+++ b/usbh/src/lib.rs
@@ -6,7 +6,7 @@ mod pipe;
mod usbproto;
use device::DeviceTable;
-use pipe::{PipeErr, PipeTable, USBPipeType};
+use pipe::{PipeErr, PipeTable, USBPipeType, NO_DATA_STAGE};
use rb::{Reader, RingBuffer, Writer};
use usbproto::*;
@@ -383,7 +383,7 @@ where
RequestCode::SetAddress,
WValue::from((device.addr, 0)),
0,
- Option::<&mut ()>::None,
+ NO_DATA_STAGE,
self.millis,
)?;