Test cleanup
This commit is contained in:
parent
8900f5f52b
commit
8edb7bb012
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user