From cc5270707ed5a7a0ce592625d0f4640bf447d6ab Mon Sep 17 00:00:00 2001 From: Frederik Menke Date: Sat, 24 Jun 2023 23:32:06 +0200 Subject: [PATCH] Rename variable --- rp2040/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rp2040/src/main.rs b/rp2040/src/main.rs index 1e98ed7..ac09d22 100644 --- a/rp2040/src/main.rs +++ b/rp2040/src/main.rs @@ -99,7 +99,7 @@ fn main() -> ! { loop { use hal::i2c::peripheral::I2CEvent; - let read_bytes = match i2c.next() { + let potentially_read_bytes = match i2c.next() { None => None, Some(I2CEvent::Stop) => { info!("Stop"); @@ -133,7 +133,7 @@ fn main() -> ! { } }; - read_bytes + potentially_read_bytes .and_then(|bytes| parse_i2c_message(&bytes).ok()) .map(|message| { if let I2CMessage::SpindleSpeed(duty) = message {