From 1c5d32e57d1753bbc9e70678d4ab39b981f557ab 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 b5e2e7a1cb..5149320673 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 1befbe3a1e..163e1e7c74 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 1ee702f071..0b877b95c4 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 } /**