From ba913a7eaf2969f00cf436acd3c229ddeae3d47a Mon Sep 17 00:00:00 2001 From: jonas Date: Tue, 1 Aug 2023 16:48:42 +0800 Subject: [PATCH] =?UTF-8?q?i2c=E7=9A=84SCL=E6=97=B6=E5=BA=8F=E6=8E=A7?= =?UTF-8?q?=E5=88=B6=EF=BC=8C=E5=8F=AF=E8=83=BD=E5=AD=98=E5=9C=A8SCL?= =?UTF-8?q?=E4=B8=8A=E5=8D=87=E7=BC=93=E6=85=A2=E5=9C=B0=E6=83=85=E5=86=B5?= =?UTF-8?q?=EF=BC=8C=E9=9C=80=E8=A6=81=E6=B7=BB=E5=8A=A0=E5=BB=B6=E6=97=B6?= =?UTF-8?q?=E7=AD=89=E5=BE=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/drivers/i2c/i2c-bit-ops.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/drivers/i2c/i2c-bit-ops.c b/components/drivers/i2c/i2c-bit-ops.c index 08fa5a8..17ce9df 100644 --- a/components/drivers/i2c/i2c-bit-ops.c +++ b/components/drivers/i2c/i2c-bit-ops.c @@ -50,6 +50,7 @@ static rt_err_t SCL_H(struct rt_i2c_bit_ops *ops) goto done; start = rt_tick_get(); + i2c_delay(ops); while (!GET_SCL(ops)) { if ((rt_tick_get() - start) > ops->timeout)