Fix I2C HIL tests (#3405)

This commit is contained in:
Kirill Mikhailov 2025-04-22 15:32:58 +02:00 committed by GitHub
parent ffbcae162a
commit ec6aec4b59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -188,15 +188,8 @@ mod tests {
// This is still an issue on ESP32-S2
#[cfg(not(esp32s2))]
#[test]
async fn async_test_timeout_when_scl_kept_low(_ctx: Context) {
let mut i2c = I2c::new(
unsafe { esp_hal::peripherals::I2C0::steal() },
Config::default(),
)
.unwrap()
.with_sda(unsafe { esp_hal::peripherals::GPIO4::steal() })
.with_scl(unsafe { esp_hal::peripherals::GPIO5::steal() })
.into_async();
async fn async_test_timeout_when_scl_kept_low(ctx: Context) {
let mut i2c = ctx.i2c.into_async();
esp_hal::gpio::InputSignal::I2CEXT0_SCL.connect_to(&esp_hal::gpio::Level::Low);