Test cleanup

This commit is contained in:
Caleb Jamison 2023-09-10 03:05:54 -04:00 committed by Dario Nieuwenhuis
parent 8900f5f52b
commit 8edb7bb012

View File

@ -40,10 +40,7 @@ async fn device_task(mut dev: i2c_slave::I2cSlave<'static, I2C1>) -> ! {
} }
Ok(i2c_slave::Command::Read) => { Ok(i2c_slave::Command::Read) => {
loop { loop {
//info!("Responding to read, count {}", count); match dev.respond_to_read(&[count]).await {
let a = dev.respond_to_read(&[count]).await;
//info!("x {}", a);
match a {
Ok(x) => match x { Ok(x) => match x {
i2c_slave::ReadStatus::Done => break, i2c_slave::ReadStatus::Done => break,
i2c_slave::ReadStatus::NeedMoreBytes => count += 1, i2c_slave::ReadStatus::NeedMoreBytes => count += 1,