diff options
author | Brian Cully <bjc@kublai.com> | 2019-07-28 11:50:16 -0400 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2019-07-28 11:50:16 -0400 |
commit | c6f841e78c41c8c66d90e05c5e57edc7a99c47ad (patch) | |
tree | a210c4464debfa5420dfbdb388faa3aee026f604 /usbh | |
parent | 2f69a27f33028fcd437c33c75b4cbcd7d230d5bc (diff) | |
download | samd21-demo-c6f841e78c41c8c66d90e05c5e57edc7a99c47ad.tar.gz samd21-demo-c6f841e78c41c8c66d90e05c5e57edc7a99c47ad.zip |
Make `dispatch_retries` private.
Diffstat (limited to 'usbh')
-rw-r--r-- | usbh/src/pipe.rs | 4 |
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, |