From 037bcc3c643783874a4635d9f2d07e56cdd0dfdb Mon Sep 17 00:00:00 2001 From: Michael Droogleever Fortuyn Date: Sat, 30 Nov 2019 20:29:44 +0100 Subject: [PATCH] fix1 --- src/display/src/main.rs | 2 +- src/microbit/examples/buttons.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/display/src/main.rs b/src/display/src/main.rs index 35a7eb5..ace61df 100644 --- a/src/display/src/main.rs +++ b/src/display/src/main.rs @@ -120,7 +120,7 @@ fn main() -> ! { writeln!(stdout, "Start").unwrap(); if let Some(p) = microbit::Peripherals::take() { // Split GPIO - let mut gpio = p.GPIO.split(); + let gpio = p.GPIO.split(); // Configure RX and TX pins accordingly let tx = gpio.pin24.into_push_pull_output().downgrade(); diff --git a/src/microbit/examples/buttons.rs b/src/microbit/examples/buttons.rs index fa34342..000ece1 100644 --- a/src/microbit/examples/buttons.rs +++ b/src/microbit/examples/buttons.rs @@ -16,7 +16,7 @@ use microbit::hal::serial::BAUD115200; fn main() -> ! { if let Some(p) = microbit::Peripherals::take() { // Split GPIO - let mut gpio = p.GPIO.split(); + let gpio = p.GPIO.split(); // Configure RX and TX pins accordingly let tx = gpio.pin24.into_push_pull_output().downgrade(); let rx = gpio.pin25.into_floating_input().downgrade();