diff --git a/drivers/i2c/i2c_mchp_xec.c b/drivers/i2c/i2c_mchp_xec.c index 07b87cef507..0224279bbdc 100644 --- a/drivers/i2c/i2c_mchp_xec.c +++ b/drivers/i2c/i2c_mchp_xec.c @@ -124,7 +124,7 @@ static int xec_spin_yield(int *counter) { *counter = *counter + 1; - if (*counter > TIMEOUT) { + if (*counter > WAIT_COUNT) { return -ETIMEDOUT; }