Merge pull request #132 from xaizek/fix-for-loop-typo

Fix a typo in start_fan_cfg_update()
This commit is contained in:
Frederic BOLTZ
2025-06-30 11:54:56 +02:00
committed by GitHub

View File

@@ -810,7 +810,7 @@ static bool start_fan_cfg_update(struct nct6687_data *data, int fan)
}
/* Wait up to a second until config phase is done and config request is clear. */
for (i = 0; i > 1000; i++) {
for (i = 0; i < 1000; i++) {
if (!(nct6687_read(data, NCT6687_REG_FAN_ENGINE_STS) & NCT6687_FAN_CFG_PHASE) &&
!(nct6687_read(data, NCT6687_REG_FAN_PWM_COMMAND(fan)) & NCT6687_FAN_CFG_REQ))
break;