diff --git a/pwmfan.cpp b/pwmfan.cpp index b09509b..fb7328c 100644 --- a/pwmfan.cpp +++ b/pwmfan.cpp @@ -47,6 +47,7 @@ volatile sig_atomic_t flag = 1; // 0 | T_MIN T_MAX max[TEMP], celsius float calcPower(int temperature) { + float value = 0.0f; if (temperature < T_MIN) { value = 0.0f; }