mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-23 20:22:51 +01:00
Fixed peripherals -> device typo
This commit is contained in:
parent
7d2fa7014d
commit
1ba2b5abbe
1 changed files with 2 additions and 2 deletions
|
@ -112,7 +112,7 @@ Change this:
|
|||
const APP: () = {
|
||||
#[init]
|
||||
fn init() {
|
||||
peripherals.SOME_PERIPHERAL.write(something);
|
||||
device.SOME_PERIPHERAL.write(something);
|
||||
}
|
||||
|
||||
// ..
|
||||
|
@ -128,7 +128,7 @@ const APP: () = {
|
|||
#[init]
|
||||
fn init(cx: init::Context) {
|
||||
// ^^^^^^^^^^^^^^^^^
|
||||
cx.peripherals.SOME_PERIPHERAL.write(something);
|
||||
cx.device.SOME_PERIPHERAL.write(something);
|
||||
// ^^^
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue