Ping i2c sensor after cancellation (#4120)

This commit is contained in:
Dániel Buga 2025-09-16 13:32:30 +02:00 committed by GitHub
parent d7d4e79aef
commit b3a17079e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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];