diff --git a/CMakeLists.txt b/CMakeLists.txt index e028e2f..c650e16 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,7 @@ option(USE_ATASMART "Enable reading temperatures from HDDs via S.M.A.R.T") set(MAXERR 2 CACHE STRING "Fail after this many consecutive errors when in DANGEROUS mode") -add_executable(thinkfan thinkfan.c config.c message.c parser.c system.c) +add_executable(thinkfan src/thinkfan.c src/config.c src/message.c src/parser.c src/system.c) set(CMAKE_C_FLAGS_DEBUG "-O0 -g3 -Wall -DDEBUG") diff --git a/src/thinkfan.c b/src/thinkfan.c index b4be989..f656639 100644 --- a/src/thinkfan.c +++ b/src/thinkfan.c @@ -156,7 +156,7 @@ int fancontrol() { // Write current fan level to IBM_FAN one cycle before the watchdog // timeout ends, to let it know we're alive. if (unlikely((wt -= tmp_sleeptime) <= sleeptime)) { - config->setfan(); + set_fan; wt = watchdog_timeout; }