Skip to content

Commit cfa8271

Browse files
committed
i missed a bit
1 parent 393bf32 commit cfa8271

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/context/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,10 @@ impl<const N: usize> DeviceHandler for Device<N> {
299299

300300
&mut self.endpoints[dci - 1]
301301
}
302+
303+
fn fill_endpoints_with_0(&mut self) {
304+
self.endpoints.fill(Endpoint::new())
305+
}
302306
}
303307

304308
/// A trait to handle Device Context.
@@ -324,6 +328,9 @@ pub trait DeviceHandler {
324328
/// This method panics if `dci > 31 || dci == 0`. Call [`DeviceHandler::slot_mut`] if you want
325329
/// a mutable handler of Slot Context.
326330
fn endpoint_mut(&mut self, dci: usize) -> &mut dyn EndpointHandler;
331+
332+
/// fill all endpoints with 0
333+
fn fill_endpoints_with_0(&mut self);
327334
}
328335

329336
/// Slot Context.

0 commit comments

Comments
 (0)