From f33d490cc017c0a4915bb2ec175df0238702442b Mon Sep 17 00:00:00 2001 From: David Date: Thu, 5 Jun 2014 17:49:36 +1200 Subject: Clean-ups --- reload.c | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'reload.c') diff --git a/reload.c b/reload.c index 1288fe4..6d31586 100644 --- a/reload.c +++ b/reload.c @@ -24,17 +24,22 @@ #include "common.h" #include + +/*********************************************************************** + * Catches the USR1 sig. Reloads the configuration files and applies any + * new changes/config etc + ************************************************************************/ void reload_config() { debug("Reloading config\n"); + + // Reload config config_init(); - if (_DEFAULT_SHOW_BATTERY) - { - //bat_tray_hide(); - bat_tray_show(); - } else { - bat_tray_hide(); - } + + // Hide battery icon if told to + _DEFAULT_SHOW_BATTERY? bat_tray_show() : bat_tray_hide(); + + // Update governor and frequency defaults debug("Re-init freq tray\n"); tray_set_defaults(); } -- cgit v1.1