mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-09-27 12:20:56 +00:00
Ping i2c sensor after cancellation (#4120)
This commit is contained in:
parent
d7d4e79aef
commit
b3a17079e8
@ -251,6 +251,10 @@ mod tests {
|
||||
);
|
||||
|
||||
defmt::info!("Transaction cancelled");
|
||||
|
||||
// Ping the sensor to ensure we don't randomly get an address failure in the next
|
||||
// iteration.
|
||||
_ = i2c.write_async(DUT_ADDRESS, &[]).await;
|
||||
}
|
||||
|
||||
let mut read_data = [0u8; 22];
|
||||
|
Loading…
x
Reference in New Issue
Block a user