aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2019-07-28 11:50:16 -0400
committerBrian Cully <bjc@kublai.com>2019-07-28 11:50:16 -0400
commitc6f841e78c41c8c66d90e05c5e57edc7a99c47ad (patch)
treea210c4464debfa5420dfbdb388faa3aee026f604
parent2f69a27f33028fcd437c33c75b4cbcd7d230d5bc (diff)
downloadsamd21-demo-c6f841e78c41c8c66d90e05c5e57edc7a99c47ad.tar.gz
samd21-demo-c6f841e78c41c8c66d90e05c5e57edc7a99c47ad.zip
Make `dispatch_retries` private.
-rw-r--r--usbh/src/pipe.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/usbh/src/pipe.rs b/usbh/src/pipe.rs
index 56acc00..2823dbe 100644
--- a/usbh/src/pipe.rs
+++ b/usbh/src/pipe.rs
@@ -165,8 +165,6 @@ impl Pipe<'_, '_> {
RequestDirection::HostToDevice => USBToken::In,
};
- // TODO: should probably make `pipe.send` have optional
- // `DataBuf`, rather than exposing `dispatch_retries`.
trace!("dispatching status stage");
self.dispatch_retries(token, NAK_LIMIT, millis)?;
Ok(())
@@ -292,7 +290,7 @@ impl Pipe<'_, '_> {
// This is the only function that calls `millis`. If we can make
// this just take the current timestamp, we can make this
// non-blocking.
- pub(crate) fn dispatch_retries(
+ fn dispatch_retries(
&mut self,
token: USBToken,
retries: usize,