mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-07-28 14:22:16 +02:00
remove log and fix unplugged fan speed
This commit is contained in:
@@ -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);
|
||||
}
|
Reference in New Issue
Block a user