From a8fd481ff663b9203036e0d7369b03d992f6cad3 Mon Sep 17 00:00:00 2001 From: jim-p Date: Thu, 11 Aug 2011 10:05:08 -0400 Subject: Flash for "gathering data" status as well, same as down. Also make it easier to change the interval manually. --- config/gwled/gwled.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'config/gwled') diff --git a/config/gwled/gwled.inc b/config/gwled/gwled.inc index eb50c575..3fff4c72 100644 --- a/config/gwled/gwled.inc +++ b/config/gwled/gwled.inc @@ -21,9 +21,12 @@ function gwled_start() { if (!($gwled_config['enable'])) return; + // How often to run the check, in seconds. + $interval = 15; + if (($gwled_config['enable_led2']) && ($gwled_config['gw_led2']) || ($gwled_config['enable_led3']) && ($gwled_config['gw_led3'])) { - mwexec("/usr/local/bin/minicron 30 /var/run/gwled.pid /usr/local/bin/gwled.php"); + mwexec("/usr/local/bin/minicron {$interval} /var/run/gwled.pid /usr/local/bin/gwled.php"); mwexec_bg("/usr/local/bin/gwled.php"); } } @@ -66,7 +69,7 @@ function gwled_set_status($gateway, $led) { elseif ($status == "none") led_on($led); } else - led_on($led); + led_blink($led, "veryfast"); } ?> -- cgit v1.2.3