From 7f3adc3e44958cfcf0c56fa714fd753f2fa8ba1e Mon Sep 17 00:00:00 2001 From: MacRsh Date: Thu, 4 Jan 2024 16:49:59 +0800 Subject: [PATCH] =?UTF-8?q?1.=E8=BD=AF=E4=BB=B6i2c=E9=80=9F=E7=8E=87?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- device/soft_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/device/soft_i2c.c b/device/soft_i2c.c index b34b7da..01f95f0 100644 --- a/device/soft_i2c.c +++ b/device/soft_i2c.c @@ -90,7 +90,7 @@ static int mr_soft_i2c_bus_configure(struct mr_i2c_bus *i2c_bus, struct mr_i2c_c } /* Calculate the delay time */ - soft_i2c_bus->delay = 1000000 / config->baud_rate; + soft_i2c_bus->delay = (1000000 / config->baud_rate) / 2; /* Configure SCL and SDA */ if (soft_i2c_bus->desc < 0)