From 5141f01e56f75d41723f809bc2102529c6e6c837 Mon Sep 17 00:00:00 2001 From: "C.S.M" Date: Mon, 9 Sep 2024 19:15:02 +0800 Subject: [PATCH] fix(i2c): Fix the wrong return value of esp32,esp32s2,esp32s3 --- components/hal/esp32/include/hal/i2c_ll.h | 2 +- components/hal/esp32s2/include/hal/i2c_ll.h | 2 +- components/hal/esp32s3/include/hal/i2c_ll.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/hal/esp32/include/hal/i2c_ll.h b/components/hal/esp32/include/hal/i2c_ll.h index dc6a4be60d..7e5d352337 100644 --- a/components/hal/esp32/include/hal/i2c_ll.h +++ b/components/hal/esp32/include/hal/i2c_ll.h @@ -647,7 +647,7 @@ static inline void i2c_ll_master_clr_bus(i2c_dev_t *hw, uint32_t slave_pulses, b */ static inline bool i2c_ll_master_is_bus_clear_done(i2c_dev_t *hw) { - return true; + return false; } /** diff --git a/components/hal/esp32s2/include/hal/i2c_ll.h b/components/hal/esp32s2/include/hal/i2c_ll.h index 4ce9e3c550..9391b32b27 100644 --- a/components/hal/esp32s2/include/hal/i2c_ll.h +++ b/components/hal/esp32s2/include/hal/i2c_ll.h @@ -678,7 +678,7 @@ static inline void i2c_ll_master_clr_bus(i2c_dev_t *hw, uint32_t slave_pulses, b */ static inline bool i2c_ll_master_is_bus_clear_done(i2c_dev_t *hw) { - return true; // not supported on esp32s2 + return false; // not supported on esp32s2 } /** diff --git a/components/hal/esp32s3/include/hal/i2c_ll.h b/components/hal/esp32s3/include/hal/i2c_ll.h index 3a20726553..50dfb6eaf7 100644 --- a/components/hal/esp32s3/include/hal/i2c_ll.h +++ b/components/hal/esp32s3/include/hal/i2c_ll.h @@ -817,7 +817,7 @@ static inline void i2c_ll_master_clr_bus(i2c_dev_t *hw, uint32_t slave_pulses, b */ static inline bool i2c_ll_master_is_bus_clear_done(i2c_dev_t *hw) { - return true; // not supported on esp32s3 + return false; // not supported on esp32s3 } /**