aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaleb Jamison <[email protected]>2023-09-10 03:05:54 -0400
committerDario Nieuwenhuis <[email protected]>2023-09-10 23:01:15 +0200
commit8edb7bb012b43977ee57f9ebff9b57436a0a904f (patch)
treeb33f0141ff07a6f46e9f7f54391ac47c42a47f23
parent8900f5f52b1140de960511f4ee6a13203d5c7b38 (diff)
Test cleanup
-rw-r--r--tests/rp/src/bin/i2c.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/rp/src/bin/i2c.rs b/tests/rp/src/bin/i2c.rs
index a6cf48afe..4b6becbaf 100644
--- a/tests/rp/src/bin/i2c.rs
+++ b/tests/rp/src/bin/i2c.rs
@@ -40,10 +40,7 @@ async fn device_task(mut dev: i2c_slave::I2cSlave<'static, I2C1>) -> ! {
40 } 40 }
41 Ok(i2c_slave::Command::Read) => { 41 Ok(i2c_slave::Command::Read) => {
42 loop { 42 loop {
43 //info!("Responding to read, count {}", count); 43 match dev.respond_to_read(&[count]).await {
44 let a = dev.respond_to_read(&[count]).await;
45 //info!("x {}", a);
46 match a {
47 Ok(x) => match x { 44 Ok(x) => match x {
48 i2c_slave::ReadStatus::Done => break, 45 i2c_slave::ReadStatus::Done => break,
49 i2c_slave::ReadStatus::NeedMoreBytes => count += 1, 46 i2c_slave::ReadStatus::NeedMoreBytes => count += 1,