We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8083797 commit 7ff1714Copy full SHA for 7ff1714
CHANGELOG.md
@@ -1,6 +1,8 @@
1
# Changelog
2
3
## Unreleased - ReleaseDate
4
+### Fixed
5
+- Outdated code example in `README.md` is fixed.
6
7
## 0.8.2 - 2021-05-13
8
### Removed
README.md
@@ -18,6 +18,8 @@ This crate is `#![no_std]` compatible.
18
let mut r = unsafe { xhci::Registers::new(MMIO_BASE, mapper) };
19
let o = &mut r.operational;
20
21
-o.usbcmd.update(|u| u.set_run_stop(true));
+o.usbcmd.update(|u| {
22
+ u.set_run_stop();
23
+});
24
while o.usbsts.read().hc_halted() {}
25
```
0 commit comments