mirror of
https://github.com/Fred78290/nct6687d.git
synced 2025-07-22 22:53:02 +02:00
Merge pull request #132 from xaizek/fix-for-loop-typo
Fix a typo in start_fan_cfg_update()
This commit is contained in:
@@ -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. */
|
/* 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) &&
|
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))
|
!(nct6687_read(data, NCT6687_REG_FAN_PWM_COMMAND(fan)) & NCT6687_FAN_CFG_REQ))
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user