Skip to content

Commit 4cfc75f

Browse files
committed
i2c_stts75_sensor: Replaced the depricated define with number.
1 parent 66d622a commit 4cfc75f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/stm32/f1/other/i2c_stts75_sensor/i2c_stts75_sensor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ static void i2c_setup(void)
7373
i2c_peripheral_disable(I2C2);
7474

7575
/* APB1 is running at 36MHz. */
76-
i2c_set_clock_frequency(I2C2, I2C_CR2_FREQ_36MHZ);
76+
i2c_set_clock_frequency(I2C2, 36);
7777

7878
/* 400KHz - I2C Fast Mode */
7979
i2c_set_fast_mode(I2C2);

0 commit comments

Comments
 (0)