Remove needless couts, add systemd service

This commit is contained in:
2022-10-02 14:54:33 +02:00
parent a935bbe265
commit c70a262f86
4 changed files with 11 additions and 4 deletions

View File

@@ -14,7 +14,6 @@ FanCurve::FanCurve(std::vector<FanStep> steps,
void FanCurve::DoFanControl() {
int temp = AggregateTemperature();
cout << "Temp: " << temp << "C" << endl;
int t0, t1, p0, p1;
int targetFanSpeed;
@@ -37,8 +36,6 @@ void FanCurve::DoFanControl() {
targetFanSpeed = p0 + ((p1 - p0) / (t1 - t0)) * (temp - t0);
}
cout << "Power: " << targetFanSpeed << "%" << endl;
for (auto f : mFans) {
f->PWM(targetFanSpeed);
}

View File

@@ -14,7 +14,6 @@ using namespace std;
HwmonFan::HwmonFan(std::shared_ptr<PWMControl> pwmControl,
std::shared_ptr<Sensor> rpmSensor)
: mPWMControl(pwmControl), mRpmSensor(rpmSensor) {
cout << "Enabling manual control" << endl;
mPWMControl->EnableManualControl();
}