mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-02-06 17:12:01 +08:00
committed by
Man, Jianting (Meco)
parent
12ec87d64e
commit
fa1f6c22e5
@@ -54,7 +54,7 @@ static rt_err_t SCL_H(struct rt_i2c_bit_ops *ops)
|
||||
{
|
||||
if ((rt_tick_get() - start) > ops->timeout)
|
||||
return -RT_ETIMEOUT;
|
||||
rt_thread_delay((ops->timeout + 1) >> 1);
|
||||
i2c_delay(ops);
|
||||
}
|
||||
#ifdef RT_I2C_BITOPS_DEBUG
|
||||
if (rt_tick_get() != start)
|
||||
|
||||
Reference in New Issue
Block a user