Rename variable

This commit is contained in:
Frederik Menke 2023-06-24 23:32:06 +02:00
parent 11a5eac24d
commit cc5270707e

View file

@ -99,7 +99,7 @@ fn main() -> ! {
loop { loop {
use hal::i2c::peripheral::I2CEvent; use hal::i2c::peripheral::I2CEvent;
let read_bytes = match i2c.next() { let potentially_read_bytes = match i2c.next() {
None => None, None => None,
Some(I2CEvent::Stop) => { Some(I2CEvent::Stop) => {
info!("Stop"); info!("Stop");
@ -133,7 +133,7 @@ fn main() -> ! {
} }
}; };
read_bytes potentially_read_bytes
.and_then(|bytes| parse_i2c_message(&bytes).ok()) .and_then(|bytes| parse_i2c_message(&bytes).ok())
.map(|message| { .map(|message| {
if let I2CMessage::SpindleSpeed(duty) = message { if let I2CMessage::SpindleSpeed(duty) = message {