Skip to content

Commit 91597ee

Browse files
htynknCopilot
andauthored
Update bsp/gd32/arm/libraries/gd32_drivers/drv_hw_i2c.c
Co-authored-by: Copilot <[email protected]>
1 parent 067429e commit 91597ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bsp/gd32/arm/libraries/gd32_drivers/drv_hw_i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ static rt_ssize_t gd32_i2c_master_xfer(struct rt_i2c_bus_device *bus, struct rt_
431431
{
432432
LOG_D("[%s] Last message, Waiting STOP.", cfg->device_name);
433433
rt_uint32_t timeout = 1000;
434-
while(I2C_STAT1(cfg->i2c_periph) & I2C_STAT1_I2CBSY && timeout--)
434+
while (I2C_STAT1(cfg->i2c_periph) & I2C_STAT1_I2CBSY && timeout--)
435435
{
436436
rt_hw_us_delay(1);
437437
}

0 commit comments

Comments
 (0)