From 3bd6e334e0908d36ab11258ea1bff675a0806c29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Victor=20Matar=C3=A9?= Date: Tue, 29 Sep 2015 20:48:43 +0200 Subject: [PATCH] don't log watchdog ping using the set_fan macro would produce a log message each time the watchdog is pinged, so we call config->setfan() directly in this situation. --- src/thinkfan.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/thinkfan.c b/src/thinkfan.c index f656639..9117a3f 100644 --- a/src/thinkfan.c +++ b/src/thinkfan.c @@ -156,7 +156,8 @@ 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)) { - set_fan; + cur_lvl = config->limits[lvl_idx].level; + config->setfan(); wt = watchdog_timeout; }