remove log and fix unplugged fan speed

This commit is contained in:
Ben 2023-11-14 23:02:42 -05:00
parent 2985db4dd0
commit dea4a7587b
2 changed files with 3 additions and 1 deletions

View File

@ -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;
}

View File

@ -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);
}