diff --git a/esp-hal/src/i2c.rs b/esp-hal/src/i2c.rs index 1f40a6372d..a9399a8a20 100644 --- a/esp-hal/src/i2c.rs +++ b/esp-hal/src/i2c.rs @@ -1168,11 +1168,7 @@ fn async_handler(info: &Info, state: &State) { w.txfifo_wm().clear_bit(); cfg_if::cfg_if! { - if #[cfg(esp32)] { - w.ack_err().clear_bit() - } else { - w.nack().clear_bit() - } + w.nack().clear_bit() } });