From cc48f7c67d34ff638476dc35887e0341b4e3d802 Mon Sep 17 00:00:00 2001 From: Darian Leung <32921628+Dazza0@users.noreply.github.com> Date: Tue, 12 Aug 2025 15:56:22 +0800 Subject: [PATCH] fix: I2C driver should use I2C_CLK_SRC_REF_TICK enum --- components/driver/i2c/i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/driver/i2c/i2c.c b/components/driver/i2c/i2c.c index 42d9243012..678e12a36b 100644 --- a/components/driver/i2c/i2c.c +++ b/components/driver/i2c/i2c.c @@ -761,7 +761,7 @@ static uint32_t s_get_src_clk_freq(i2c_clock_source_t clk_src) break; #endif #if SOC_I2C_SUPPORT_REF_TICK - case RMT_CLK_SRC_REF_TICK: + case I2C_CLK_SRC_REF_TICK: periph_src_clk_hz = REF_CLK_FREQ; break; #endif