mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-03-26 17:51:45 +01:00
remove log and fix unplugged fan speed
This commit is contained in:
parent
2985db4dd0
commit
dea4a7587b
@ -75,6 +75,9 @@ uint16_t EMC2101_get_fan_speed(void)
|
||||
RPM = 5400000 / reading;
|
||||
|
||||
// ESP_LOGI(TAG, "Fan Speed = %d RPM", RPM);
|
||||
if (RPM == 82) {
|
||||
return 0;
|
||||
}
|
||||
return RPM;
|
||||
}
|
||||
|
||||
|
@ -158,6 +158,5 @@ static void automatic_fan_speed(float chip_temp)
|
||||
result = ((chip_temp - min_temp) / range) * 100;
|
||||
}
|
||||
|
||||
ESP_LOGE(TAG, "Result %f", result);
|
||||
EMC2101_set_fan_speed((float) result / 100);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user