Skip to content

Commit f7b7c99

Browse files
committed
timeout duplicate division removed
1 parent 5739934 commit f7b7c99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

i2c_manager/i2c_manager.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,12 @@ esp_err_t I2C_FN(_read)(i2c_port_t port, uint16_t addr, uint32_t reg, uint8_t *b
191191
TickType_t timeout = 0;
192192
#if defined (I2C_ZERO)
193193
if (port == I2C_NUM_0) {
194-
timeout = (CONFIG_I2C_MANAGER_0_TIMEOUT) / portTICK_RATE_MS;
194+
timeout = I2C_MANAGER_0_TIMEOUT;
195195
}
196196
#endif
197197
#if defined (I2C_ONE)
198198
if (port == I2C_NUM_1) {
199-
timeout = (CONFIG_I2C_MANAGER_1_TIMEOUT) / portTICK_RATE_MS;
199+
timeout = I2C_MANAGER_1_TIMEOUT;
200200
}
201201
#endif
202202

0 commit comments

Comments
 (0)