i2c: prevent SPEED_FAST check if not supported

This commit is contained in:
timdechant 2025-04-09 07:26:13 -04:00
parent 14f6455b95
commit 5db6c21f0f

View File

@ -184,7 +184,7 @@ int omv_i2c_init(omv_i2c_t *i2c, uint32_t bus_id, uint32_t speed) {
return -1;
}
#if !defined(OMV_I2C_DISABLE_FASTMODE)
#if defined(IS_I2C_FASTMODEPLUS)
if (speed == OMV_I2C_SPEED_FAST) {
// Enable FAST mode plus.
switch (bus_id) {