diff --git a/src/shared/drivers/i2c/I2CDriver-f7.cpp b/src/shared/drivers/i2c/I2CDriver-f7.cpp index c98c0de14282e6bcb5b33ee2bf633cee51f2acfb..8381d90b2fdeddfe3c1d108dcbf64cc1d362237b 100644 --- a/src/shared/drivers/i2c/I2CDriver-f7.cpp +++ b/src/shared/drivers/i2c/I2CDriver-f7.cpp @@ -444,6 +444,9 @@ void I2CDriver::init() // bit resets the peripheral) i2c->CR1 = 0; + // Calling getTimings so that all his static variables are initialized + getTimings(I2CDriver::Speed::STANDARD); + // Enabling the peripheral after initialization i2c->CR1 |= I2C_CR1_PE; }