Fixed peripherals -> device typo

This commit is contained in:
Emil Fresk 2019-10-23 20:31:33 +02:00
parent 7d2fa7014d
commit 1ba2b5abbe

View file

@ -112,7 +112,7 @@ Change this:
const APP: () = { const APP: () = {
#[init] #[init]
fn init() { fn init() {
peripherals.SOME_PERIPHERAL.write(something); device.SOME_PERIPHERAL.write(something);
} }
// .. // ..
@ -128,7 +128,7 @@ const APP: () = {
#[init] #[init]
fn init(cx: init::Context) { fn init(cx: init::Context) {
// ^^^^^^^^^^^^^^^^^ // ^^^^^^^^^^^^^^^^^
cx.peripherals.SOME_PERIPHERAL.write(something); cx.device.SOME_PERIPHERAL.write(something);
// ^^^ // ^^^
} }