From 4cfc75f715d2ed48b5d51fd58d06b2f6e4cc6d99 Mon Sep 17 00:00:00 2001 From: Piotr Esden-Tempski Date: Sat, 19 Jun 2021 01:14:55 -0700 Subject: [PATCH] i2c_stts75_sensor: Replaced the depricated define with number. --- examples/stm32/f1/other/i2c_stts75_sensor/i2c_stts75_sensor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/stm32/f1/other/i2c_stts75_sensor/i2c_stts75_sensor.c b/examples/stm32/f1/other/i2c_stts75_sensor/i2c_stts75_sensor.c index f4a8cd7..6b81686 100644 --- a/examples/stm32/f1/other/i2c_stts75_sensor/i2c_stts75_sensor.c +++ b/examples/stm32/f1/other/i2c_stts75_sensor/i2c_stts75_sensor.c @@ -73,7 +73,7 @@ static void i2c_setup(void) i2c_peripheral_disable(I2C2); /* APB1 is running at 36MHz. */ - i2c_set_clock_frequency(I2C2, I2C_CR2_FREQ_36MHZ); + i2c_set_clock_frequency(I2C2, 36); /* 400KHz - I2C Fast Mode */ i2c_set_fast_mode(I2C2);