From 9f98f6d0d8033338de5315de1039158079fa7e90 Mon Sep 17 00:00:00 2001 From: jsteube Date: Fri, 30 Sep 2016 11:57:28 +0200 Subject: [PATCH] Make hwmon support modular --- src/hwmon.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/hwmon.c b/src/hwmon.c index 51fbf409b..bfc3aa127 100644 --- a/src/hwmon.c +++ b/src/hwmon.c @@ -800,11 +800,13 @@ int hwmon_ctx_init (hwmon_ctx_t *hwmon_ctx, const user_options_t *user_options, { hwmon_ctx->enabled = false; - if (user_options->gpu_temp_disable == true) return 0; - if (user_options->show == true) return 0; - if (user_options->left == true) return 0; - if (user_options->keyspace == true) return 0; - if (user_options->stdout_flag == true) return 0; + if (user_options->keyspace == true) return 0; + if (user_options->left == true) return 0; + if (user_options->show == true) return 0; + if (user_options->stdout_flag == true) return 0; + if (user_options->usage == true) return 0; + if (user_options->version == true) return 0; + if (user_options->gpu_temp_disable == true) return 0; hwmon_ctx->hm_device = (hm_attrs_t *) mycalloc (DEVICES_MAX, sizeof (hm_attrs_t));