aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/src/hal_ee24xx.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/src/hal_ee24xx.c')
-rw-r--r--os/hal/src/hal_ee24xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/src/hal_ee24xx.c b/os/hal/src/hal_ee24xx.c
index 632ffbb..164530e 100644
--- a/os/hal/src/hal_ee24xx.c
+++ b/os/hal/src/hal_ee24xx.c
@@ -105,7 +105,7 @@ static systime_t calc_timeout(I2CDriver *i2cp, size_t txbytes, size_t rxbytes) {
tmo = ((txbytes + rxbytes + 1) * bitsinbyte * 1000);
tmo /= EEPROM_I2C_CLOCK;
tmo += 10; /* some additional milliseconds to be safer */
- return MS2ST(tmo);
+ return TIME_MS2I(tmo);
}
/**